Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 09 Nov 2007 09:25:22 -0600,    group: microsoft.public.windows.developer.winfx.avalon        back       


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.
date: Fri, 09 Nov 2007 09:25:22 -0600   author:   Scott Walters

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us