Unfortunantely we have a lot of printing using the DBReport in our xojo-apps, and since Version 2016r4.1 we had severe problems with the DBReport because of the changes in the Xojo-Update. We decided to switch back to the Xojo-Report, but the result is extremely unsatisfying for us developers and of course for our costumers. We always get low-resolution-prints, and we don’t know what else we can do…
We are programming for Windows 64Bit-Systems
We heard that the XojoScript still isn’t available for 64 Bit. Maybe this causes our problems?
What we tried was writing an Xojo-Skript that creates a printerSetup, setting the max resolution to 200 in the program code, doing a testprint and readout the setupString again. We then loaded this setupString when we do prints, it always worked well, but now it doesn’t. We always geht back an max resolution of 200, but an actual resolution of 96 or even just 72, depending on the printer we test. Just on a few printers, we get correct results. Of course this is anything but not a reliable solution we can offer our costumers.
So our code looks like this:
Dim ps As New PrinterSetup
'...
'readout the setupString from a textfile
'...
ps.SetupString=setupString
// set the resolution to 200 DPI for printing again
ps.MaxHorizontalResolution = 200
ps.MaxVerticalResolution = 200
...
g=OpenPrinter(ps)
...
rpt.Run(rs, ps) Then
rpt.Document.Print(g)
...
We even tried this like in the mentioned example PrintingGraphics/PrintingPicture, but still get bad resolution prints.
Dim pictureToDraw As Picture = New Picture(4 * g.Height, 4 * g.Width)
g.DrawPicture(pictureToDraw, 0, 0, g.Width, g.Height, 0, 0, pictureToDraw.Width, pictureToDraw.Height)
From what plugin do you get the RenderPage-Function mentioned in the example above?
As an interesting fact, printing pdfs still works well. We think about being a little bit creative, to print the report to an pdf, then print this pdf again by an tool you can control by shell (like SumatraPDF). So is there a tool available where you can can print Xojo-Reports directly to a pdf-File? The RenderToPDF-Function of the DBReport doesn’t work because we use 64-Bit Systems (the perfomance is very bad even when printing very simple reports).
We need support very urgent. What else could we do?
Thank you very much!