K
kurisutofu
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;
AutoVPageBreaks.PageBreaks=XlPageBreaks.XlPageBreakNone;
or
VPageBreak VPB1= ExcelWorksheet1.VPagesBreaks[1];
VPB1.Delete();
--> This one raised an error
I also tried to add before RestPageBreaks() 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.
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;
AutoVPageBreaks.PageBreaks=XlPageBreaks.XlPageBreakNone;
or
VPageBreak VPB1= ExcelWorksheet1.VPagesBreaks[1];
VPB1.Delete();
--> This one raised an error
I also tried to add before RestPageBreaks() 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.