Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have found on internet to get information how to find cell page break, but
i can't found it. can you help me? thank you very much Best Regards Hasan Widjaya fujitsu system indonesia -Analyst Programmer- |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hasan,
Each WS has a .Horizontal/VerticalPageBreaks collection you can enumerate, each giving details about its type, position etc. NickHK "Hasan Widjaya" <Hasan wrote in message ... I have found on internet to get information how to find cell page break, but i can't found it. can you help me? thank you very much Best Regards Hasan Widjaya fujitsu system indonesia -Analyst Programmer- |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks NickHK, i found this function and i have to try it. but there is some
problems here. if in one sheet have two pagebreak, there is error while getting the second row pagebreak. public string SetPageBreak(int Columns) { int xRow; string RowPage = ""; try { for(int i = 1; i <= xlWorksheet.HPageBreaks.Count; i++) { xRow = xlWorksheet.HPageBreaks[i].Location.get_Offset(-1,0).Row; SetBorder(xRow, 1, xRow, Columns, BorderIndex.EdgeBottom); RowPage += xRow.ToString() + ","; } return RowPage; } catch(Exception ex) { return RowPage; } } "NickHK" wrote: Hasan, Each WS has a .Horizontal/VerticalPageBreaks collection you can enumerate, each giving details about its type, position etc. NickHK "Hasan Widjaya" <Hasan wrote in message ... I have found on internet to get information how to find cell page break, but i can't found it. can you help me? thank you very much Best Regards Hasan Widjaya fujitsu system indonesia -Analyst Programmer- |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hasan,
Should you be working with the Vertical PageBreaks, instead of the Horizontal ? NickHK "Hasan Widjaya" wrote in message ... thanks NickHK, i found this function and i have to try it. but there is some problems here. if in one sheet have two pagebreak, there is error while getting the second[i] row pagebreak. public string SetPageBreak(int Columns) { int xRow; string RowPage = ""; try { for(int i = 1; i <= xlWorksheet.HPageBreaks.Count; i++) { xRow = xlWorksheet.HPageBreaks.Location.get_Offset(-1,0).Row; SetBorder(xRow, 1, xRow, Columns, BorderIndex.EdgeBottom); RowPage += xRow.ToString() + ","; } return RowPage; } catch(Exception ex) { return RowPage; } } "NickHK" wrote: Hasan, Each WS has a .Horizontal/VerticalPageBreaks collection you can enumerate, each giving details about its type, position etc. NickHK "Hasan Widjaya" <Hasan wrote in message ... I have found on internet to get information how to find cell page break, but i can't found it. can you help me? thank you very much Best Regards Hasan Widjaya fujitsu system indonesia -Analyst Programmer- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Page Break Adjustments causes a page break each cell | Excel Worksheet Functions | |||
page break in Excel 97 | Excel Discussion (Misc queries) | |||
Excel page break | Excel Worksheet Functions | |||
Hard page break that won't allow me to scroll past? would love to find out ;) | Excel Worksheet Functions | |||
adding a new page break to an existing page break | Excel Discussion (Misc queries) |