Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
Question[C#] PageBreak in Excel Pin
kurisutofuJP12-Sep-07 19:22
kurisutofuJP12-Sep-07 19:22 
Hello everyone,

With a C# made software, I create an Excel file with many sheets. Everything
goes well until I tried to remove PageBreaks.

I can add them but I can't delete them so I still have the automatic one
appearing there ...

I tried a lot of things such as:
Range AutoVPageBreaks=ExcelWorksheet1.VPagesBreaks[1].Location;<br />
AutoVPageBreaks.PageBreaks=XlPageBreaks.XlPageBreakNone;


or

VPageBreak VPB1= ExcelWorksheet1.VPagesBreaks[1];<br />
VPB1.Delete();

--> This one raised an error

I also tried to add before ResetPageBreaks() or DisplayPageBreaks=false but
nothing worked ... I still have the automatic pagebreaks ...

Does someone know howw to remove those pagebreaks? Do I need to set the
sheet to printpreview? If so, how? (I tried but that raised an error)

I hope you can help me.

Thank you.
QuestionGet Value of Arbitrary ListBox Item Pin
Sukhjinder_K12-Sep-07 18:55
Sukhjinder_K12-Sep-07 18:55 
AnswerRe: Get Value of Arbitrary ListBox Item Pin
Pete O'Hanlon12-Sep-07 22:12
mvePete O'Hanlon12-Sep-07 22:12 
GeneralRe: Get Value of Arbitrary ListBox Item Pin
Sukhjinder_K12-Sep-07 22:29
Sukhjinder_K12-Sep-07 22:29 
GeneralRe: Get Value of Arbitrary ListBox Item Pin
Pete O'Hanlon12-Sep-07 22:39
mvePete O'Hanlon12-Sep-07 22:39 
GeneralSET Value of Arbitrary ListBox Item Pin
Sukhjinder_K12-Sep-07 23:33
Sukhjinder_K12-Sep-07 23:33 
GeneralRe: SET Value of Arbitrary ListBox Item Pin
Pete O'Hanlon12-Sep-07 23:55
mvePete O'Hanlon12-Sep-07 23:55 
GeneralRe: SET Value of Arbitrary ListBox Item Pin
Sukhjinder_K13-Sep-07 0:13
Sukhjinder_K13-Sep-07 0:13 
GeneralRe: SET Value of Arbitrary ListBox Item Pin
Pete O'Hanlon13-Sep-07 0:33
mvePete O'Hanlon13-Sep-07 0:33 
GeneralRe: SET Value of Arbitrary ListBox Item Pin
Sukhjinder_K13-Sep-07 1:59
Sukhjinder_K13-Sep-07 1:59 
AnswerRe: Get Value of Arbitrary ListBox Item Pin
pmarfleet12-Sep-07 22:15
pmarfleet12-Sep-07 22:15 
AnswerRe: Get Value of Arbitrary ListBox Item Pin
Luc Pattyn13-Sep-07 1:19
sitebuilderLuc Pattyn13-Sep-07 1:19 
QuestionPlz help me to go to a particular node in xml file Pin
P_Elza12-Sep-07 17:15
P_Elza12-Sep-07 17:15 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Christian Graus12-Sep-07 18:39
protectorChristian Graus12-Sep-07 18:39 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Jintal Patel12-Sep-07 19:15
Jintal Patel12-Sep-07 19:15 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Nouman Bhatti12-Sep-07 19:27
Nouman Bhatti12-Sep-07 19:27 
AnswerRe: Plz help me to go to a particular node in xml file Pin
P_Elza12-Sep-07 21:52
P_Elza12-Sep-07 21:52 
QuestionSaving username and password Pin
C#Coudou12-Sep-07 15:33
C#Coudou12-Sep-07 15:33 
AnswerRe: Saving username and password Pin
Christian Graus12-Sep-07 15:50
protectorChristian Graus12-Sep-07 15:50 
QuestionReading data from a dataset with a checkedlistbox Pin
falles0112-Sep-07 15:28
falles0112-Sep-07 15:28 
AnswerRe: Reading data from a dataset with a checkedlistbox Pin
Christian Graus12-Sep-07 18:52
protectorChristian Graus12-Sep-07 18:52 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0112-Sep-07 19:00
falles0112-Sep-07 19:00 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
Christian Graus13-Sep-07 3:10
protectorChristian Graus13-Sep-07 3:10 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0113-Sep-07 15:12
falles0113-Sep-07 15:12 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0113-Sep-07 15:17
falles0113-Sep-07 15:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.