PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem? printing using sample PreviewForm

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
pbturner



Joined: 30 Oct 2007
Posts: 12

PostPosted: Thu Nov 01, 2007 4:13 pm    Post subject: problem? printing using sample PreviewForm Reply with quote

created a small C# application based on some of the c# samples. the top 1/3 of the page is text and lines. below that, there is a BMP graphic that gets loaded onto the form. when i show the PreviewForm, i see the graphic as it should be (scaled to the page so it'll fit), but clicking on print, the graphic goes off the page. clicking on CreatePDF, i'm presented with an Adobe Reader window with the graphic sized correctly. from here, if i click on print, the page is printed as it looks on the form, and on the original preview form. is there something in the PreviewForm print that should be updated? if not, any other ideas? i like the preview form and it's features, but could "roll my own" set of functions that goes directly to the Adobe Reader, but don't think it'd be as graceful. maybe i'm doing something wrong in loading the graphc??

thanks,

Pete Turner
Sun Nuclear Corp.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Nov 05, 2007 9:50 am    Post subject: Reply with quote

I have no explanation.
It could be there's a bug in the renderer used for printing that is not present in the PdfRenderer.

Maybe there's something unusual about the BMP.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
pbturner



Joined: 30 Oct 2007
Posts: 12

PostPosted: Tue Nov 06, 2007 8:29 pm    Post subject: Reply with quote

what my application does is to build a "form" then display it using the preview sample. from there, if you click on print, the displayed form ends up being larger than the paper for the printer. but, if you click on create PDF, the image in the PDF viewer is fine, as is the printout.

doing a bit of digging, in the PrintPage function of the PreviewForm, there's a line with PageSizeConverter. the "default" is PageSize.A4. if i change this to PageSize.Letter, the printout is better, but it's still too big. is there an argument that can be substituted for the XSize... calculation so that the graphics image that is copied into the gfx structure is a 1 to 1 (same size) copy of the original?
Back to top
View user's profile Send private message
pbturner



Joined: 30 Oct 2007
Posts: 12

PostPosted: Tue Nov 06, 2007 9:24 pm    Post subject: Reply with quote

in the mean time, i made the MakePDF function public in the PreviewForm file, and, from my form, instead of calling form.ShowDialog to show the preview form, i call form.MakePDF. it goes right to the PDF viewer. from there, i have similar abilities to the preview form (smaller, larger, save, print, etc).
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com