Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel - XML Page Breaks

Hello:
I am trying to generate an XML file that will be opened in Excel and
would like the Excel Workbook to print 20 records each on a page. Could
someone please send me a sample code on how to write page break tags in
XML.

Thank you,
Clement

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel - XML Page Breaks

On Jan 26, 11:39 am, "
wrote:
Hello:
I am trying to generate an XML file that will be opened in Excel and
would like the Excel Workbook to print 20 records each on a page. Could
someone please send me a sample code on how to write page break tags in
XML.

Thank you,
Clement


No replies?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel - XML Page Breaks

Hi Clement,
Excel requires page breaks to be defined by row number in the <PageBreaks
tag which typically follows the </WorkSheetOptions end tag. Here's an
example that creates page breaks at row 30 and row 60:
..
..
</WorkSheetOptions
<PageBreaks xmlns="urn:schemas-microsoft-com:office:excel"
<RowBreaks
<RowBreak
<Row30</Row
</RowBreak
<RowBreak
<Row60</Row
</RowBreak
</RowBreaks
</PageBreaks
..
..
It would be nice if you could just use the page break tag after writing a
specific row to the file so that you can build page breaks as you go...it
would be a nice enhancement. As far as I know, this example is the only way
that it can be done at this time.

Hope this helps,

Angie

" wrote:

On Jan 26, 11:39 am, "
wrote:
Hello:
I am trying to generate an XML file that will be opened in Excel and
would like the Excel Workbook to print 20 records each on a page. Could
someone please send me a sample code on how to write page break tags in
XML.

Thank you,
Clement


No replies?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel - XML Page Breaks

Just an additional note on your 20 row requirement...you can save all your
page break rows to an array and then plug in the values with a loop when
you're writing that part of the file.

"Angie Baby" wrote:

Hi Clement,
Excel requires page breaks to be defined by row number in the <PageBreaks
tag which typically follows the </WorkSheetOptions end tag. Here's an
example that creates page breaks at row 30 and row 60:
.
.
</WorkSheetOptions
<PageBreaks xmlns="urn:schemas-microsoft-com:office:excel"
<RowBreaks
<RowBreak
<Row30</Row
</RowBreak
<RowBreak
<Row60</Row
</RowBreak
</RowBreaks
</PageBreaks
.
.
It would be nice if you could just use the page break tag after writing a
specific row to the file so that you can build page breaks as you go...it
would be a nice enhancement. As far as I know, this example is the only way
that it can be done at this time.

Hope this helps,

Angie

" wrote:

On Jan 26, 11:39 am, "
wrote:
Hello:
I am trying to generate an XML file that will be opened in Excel and
would like the Excel Workbook to print 20 records each on a page. Could
someone please send me a sample code on how to write page break tags in
XML.

Thank you,
Clement


No replies?


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 2003 Page Breaks GSV Melbourne Excel Discussion (Misc queries) 1 April 21st 08 02:20 AM
Excel Page Breaks Cosmo[_2_] Excel Discussion (Misc queries) 0 March 19th 07 11:31 PM
Page Breaks in Excel Fred Excel Programming 8 January 6th 06 05:13 PM
excel page breaks gone Tere01 Excel Discussion (Misc queries) 1 August 16th 05 09:25 PM
Excel page breaks Eric Howard Excel Programming 2 December 11th 04 02:57 AM


All times are GMT +1. The time now is 11:36 AM.

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

About Us

"It's about Microsoft Excel"