Fonts

Fonts name and size (8.5x11 paper size)
which is the best result for laser printing

Assuming this question is not directly about Xojo and more in terms of being general, it really depends on the font you (or your customer) likes. In terms of size, usually around 10-12px are the norms. I used to work and support the pre-press industry and this question comes up a lot. My real answer most of the time is “whatever makes you happy.” Think about your audience, design your reports/prints accordingly. :wink:

i am using Xojo v8 r3 beta
but the reports look bad like no good resolution

That is because you are using the default resolution of 72DPI, and NOT the best your printer can manage

Be aware that different printers support different resolutions, and you can not just say “use 300Dpi”… because if the printer does NOT support the exact resolution you choose, it defaults back to 72DPI .

So you either need your app to be able to query the printer to get the parameters, or let the user enter them (and hope they enter valid values)

the print is set to 600 DPI but no print Good

but Xojo is Printing at 72DPI way or how i set this to works

If you set it to 600DPI and you are printing at 72DPI then one of two things is happening

a) your printer does not support 600DPI
b) you are coding it incorrectly

my code (iF THIS CODE IS NO CORRECT THEN SEND ME SMALL CODE TO HOW TO PRINT)
g=OpenPrinterDialog
If g <> Nil then
if rpt.Run(rs,ps) then //if the report ran successfully, print it
rpt.Document.Print(g)
end if
end if

the printer is KYOCERA KM-1820LA

Where are you “setting” the printer resolution???

That printer DOES support 600x600 DPI

How do you define “PS”?

Settings =“DoNotAlterThis=SetupString.2”_
+EndOfLine+“ActualHorizontalResolution=72”_
+EndOfLine+“ActualVerticalResolution=72”_
+EndOfLine+“MaxHorizontalResolution=600”_
+EndOfLine+“MaxVerticalResolution=600”_
+EndOfLine+“MarginLeft=0”_
+EndOfLine+“MarginRight=0”_
+EndOfLine+“MarginTop=0”_
+EndOfLine+“MarginBottom=0”_
+EndOfLine+“MinMarginLeft=0”_
+EndOfLine+“MinMarginRight=0”_
+EndOfLine+“MinMarginTop=0”_
+EndOfLine+“MinMarginBottom=0”_
+EndOfLine+“PageSetupFlags=6”_
+EndOfLine+“DevModeStructureSizePS=1044”_
+EndOfLine+“DevModeStructurePS=Kyocera KM-1820”

tmpSetupString=new MemoryBlock(lenb(Settings))
ps.SetupString = tmpSetupString

dim ps as new printersetup
ps.maxhorizontalresolution=600
etc…
etc.

yes i now

but no works
look bad

this is on Windows 7 32bits

this is no working correct
If ps.PageSetupDialog Then
settings=ps.SetupString
End If

the printer is set to 600DPI but the SetuString it return 72DPI this is a Bug or what

help feedback number 28591

what is
ActualHorizontalResolution
ActualVerticalResolution

Ok… guess I can’t help anymore than… I’ve told you everything I know…

You must set MaxHorizontalResolution and MaxVerticalResolution after PageSetupDialog and before you open the printer.

yes i now that but way it look (Reports are coming out blurry)

is like the MaxHorizontalResolution and MaxVerticalResolution i change the values ??but falls as if like never have changes.

if any way to check if the Graphics object of the Printer have change the resolution.

g.width / page_width does it equal 72? or 600?

this g.width / page_width does it equal 72? or 600?
return 0

zero? seriously… I am assuming you didn’t take that LITERALLY and that you replacesd “page_width” with whatever the width of your paper is…

I mean you do have to think a LITTLE for yourself here…