Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Weird problems with Report / PDF Export / Printing, sometimes even crashes
Re: Weird problems with Report / PDF Export / Printing, sometimes even crashes [message #39056 is a reply to message #39000] Mon, 11 February 2013 19:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
1. Problems with ChooseDefaltPrinter/ChoosePrinter - these were bugs in POSIX version of PrinterJob, now fixed (with some additional improvements). (Commited to svn).

2. The page size issue - this one is quite tricky.

The main issue to consider here is that physical size of paper is not the same as printable area and that we do not really know what printable area is. In this sense, ChoosePrinter / ChooseDefaultPrinter do not quite do the correct thing (they are added to much later), as they set the report page size to physical size...

Anyway, under normal circumstances, the page size is decision of program (well, mostly we want consistent report output at all times, do not we?). There is some conservative default value for pagesize, which can be increased by Report::SetPageSize.

What happens during printing process (in POSIX it is CUPS doing) is that pages are rendered to this SetPageSize size, then printed centered with the physical page size.

Margin then is only simple too to move top-left offset instead of centering.

I have also tested Pdf output, it seems quite consistent with printed output (BTW, in my Linux PDF viewer there is "Fit to page" option that is on by default, it can skew results when testing).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a way to set page width in the QTF Designer / Topic++ editor / UWord ?
Next Topic: [Minor bug report & patch] RichTextView should use native ibeam icon.
Goto Forum:
  


Current Time: Mon May 06 00:23:52 CEST 2024

Total time taken to generate the page: 0.02622 seconds