Luis Gustavo
Posts: 2
Nickname: lgcibim
Registered: Apr, 2004
|
|
Re: Excel Automation
|
Posted: Apr 26, 2004 11:17 AM
|
|
Hi, I'm using this to add a Page Break using C#:
worksheet.get_Range("A35", "R35").PageBreak = (int)Excel.Constants.xlManual;
OR
worksheet.HPageBreaks.Add(worksheet.get_Ran ge("A35", "R35"));
The programs runs without errors, but when I open the Excel file and go to the "Print Preview" and "Page Break Preview", the Page Breaks not appear. Do you know why? There are any Page Setup to the Excel accept the Page Break?
|
|