[SOLVED] trouble printing to printer
Posted
#1
(In Topic #655)
Enthusiast

When I print the .pdf file to the printer it is fine on the printer.
But, If I print directly to the printer (without the pdf file) the font size is wrong and the horizontal lay out is wrong.
A year ago I did not have this problem … it all worked well.
It is like gambas is using inches and the printer is using metric.
Posted
Enthusiast

The print to file and preview use 300 dots per inch resolution, and the printer driver to the printer uses 72 dots per inch (dpi)
The command
Code (gambas)
Posted
Enthusiast

By using these two commands together :
Code (gambas)
- Printer1.Resolution = 72
- Paint.FontScale = 1
OR;
Code (gambas)
- Printer1.Resolution = 300
- Paint.FontScale = 0.2
They both seem to give similar results, You must use both commands together.
Either one by themselves will not correct the problem with canon printer driver and gb.gtk3
I have not tried other resolution and fontscale combination … that is for later
later has arrived:
For my setup debian and a canon ts8220 printer and gtk3 the exact setting is 64 to exactly match the preview to the printout, But you must use both resolution and fontscale …. either one alone produces opposite results.
Code (gambas)
- Printer1.Resolution = 64
- Paint.FontScale = 1
1 guest and 0 members have just viewed this.




