set printMargin command issue

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

set printMargin command issue

Post by arkstar » Mon Aug 16, 2010 4:55 am

I have added a "set printmargins to" command in my printing script. Now my first page is a blank page and then all is correct. Once I remove the printmargin statement, no more first page blank. I have played with the parameters of the statement but there is no effect.

Does anyone have an idea? Here is my code:

set the printPaperOrientation to "portrait"
set the printColors to true
set the printPaperSize to 612,792
set the printMargins to 36,0,18,18
set the printScale to .9

Thanks!
Rob
Rob Glassman
ArkStar

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: set printMargin command issue

Post by Mark » Mon Aug 16, 2010 10:55 am

Hi Rob,

If you are printing on A4, then your paperSize including the margins should be no more than 842 pixels high and 597 pixels wide. Your current paper size is 666 pixels wide. Such a number just can't be right :-)

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: set printMargin command issue

Post by arkstar » Mon Aug 16, 2010 11:09 am

Thanks Mark,

I decreased the printPaperSize but still get the blank page....

Any other ideas?

Thanks again

Rob
Rob Glassman
ArkStar

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: set printMargin command issue

Post by arkstar » Mon Aug 16, 2010 11:09 am

FYI

I am using US letter size.

Rob
Rob Glassman
ArkStar

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: set printMargin command issue

Post by Mark » Mon Aug 16, 2010 11:17 am

Rob,

You can calculate the max total size yourself. 1 inch = 72 pixels.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: set printMargin command issue

Post by arkstar » Mon Aug 16, 2010 11:54 am

Hi again Mark,

Actually, Everything prints out just great...except....I now get an extra page at the beginning that is blank. This did not happen until I added the printMargins command.

Rob
Rob Glassman
ArkStar

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: set printMargin command issue

Post by Mark » Mon Aug 16, 2010 12:02 pm

Hi Rob,

I think it is because the page you are printing is larger than the physical size of the paper in your printer. If you think it is not, then you should post your complete printing script.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: set printMargin command issue

Post by arkstar » Mon Aug 16, 2010 12:28 pm

That was it Mark!
Thanks for your help and quick replies!!!

Rob
Rob Glassman
ArkStar

Post Reply