Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to find Excel Page Break?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How to find Excel Page Break?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to find Excel Page Break?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How to find Excel Page Break?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Page Break Adjustments causes a page break each cell BKaufman Excel Worksheet Functions 2 September 10th 10 05:02 AM
page break in Excel 97 JD Excel Discussion (Misc queries) 3 June 19th 09 04:35 AM
Excel page break sgrace Excel Worksheet Functions 0 December 11th 08 12:21 AM
Hard page break that won't allow me to scroll past? would love to find out ;) M.R.S. Excel Worksheet Functions 4 April 4th 05 12:59 PM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"