Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - eliminating page break from XPS print

 
 
Old 11-09-2007   #1 (permalink)
Scott Walters


 
 

eliminating page break from XPS print

I've tried several ways to eliminate the page break since I'm printing
on a small receipt printer with a continuous paper feed, but I still get
a 1/2 cm or so break. My basic print code looks like this...

FlowDocument doc = <passed in FlowDocument>
PrintDocumentImageableArea ia = null;
XpsDocumentWriter docWriter = PrintQueue.CreateXpsDocumentWriter(ref ia);

doc.PagePadding = new Thickness(0, 0, 0, 0);
DocumentPaginator paginator =
((IDocumentPaginatorSource)doc).DocumentPaginator;
paginator.PageSize = new Size(ia.MediaSizeWidth, ia.MediaSizeHeight);
docWriter.Write(paginator);



I've tried the following...

Setting doc.PagePadding to new Thickness(0, 0, 0, 0). This almost does
it but the 1/2 cm is still there.

Setting the PageHeight of both the paginator and the flow doc to large
values and re-computing the page count. No matter how I do this it only
prints oart of the document. Once it gets to where a pgae break would
be, it stops.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
trying to print webpages - only 1 page will print Vista General
How to print a web page with VBA? VB Script
page break in word pad Vista General
Vista last page does not print -with print server Vista print fax & scan
Web Page Will Not Print Vista print fax & scan


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46