LB Booster
Programming >> Liberty BASIC language >> Print size?
http://lbb.conforums.com/index.cgi?board=lblang&action=display&num=1436430597

Print size?
Post by Monkfish on Jul 9th, 2015, 08:29am

Hi all

I have been trying to print the contents of a graphics box using the following instruction:

print #main.gfx, "print [size]"

I would like the user to be able to adjust the size precisely, but outside the size options of vga, svga and xga, I'm not sure that this instruction allows that.

I am using the printer dialog successfully to allow the user to set print quality and paper orientation... although this only works fully in LBB not LB (LBB is just far more predictable... huge thanks to Richard). But adjusting the print size is eluding me.


Re: Print size?
Post by Richard Russell on Jul 9th, 2015, 08:48am

on Jul 9th, 2015, 08:29am, Monkfish wrote:
I would like the user to be able to adjust the size precisely, but outside the size options of vga, svga and xga, I'm not sure that this instruction allows that.

Yes it does, you just have to substitute a numeric value for the VGA, SVGA or XGA qualifier. In fact those options are simply aliases for 640, 800 and 1024 respectively.

So for example if you want to set the print size to a variable value you can do:

Code:
    printsize = 800
    #main.gfx "print ";printsize 

Richard.