FilePageSetup command

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

FilePageSetup command

Post by jsc »

David,

I just tried to make a small macro to automate setting page margins to 0.3" in landscape and print to my default printer, which happens to be "CutePDF".

Macro is:

FilePageSetup(0.3,0.3,0.3,0.3,,1,,)
FilePrint("CutePDF Writer")

Even if I specify orientation=2 as FilePageSetup(0.3,0.3,0.3,0.3,2,1,,), I keep getting portrait oriented pdfs.

If I manually look at page setup, it's set as Landscape, and if I click Printer>Properties, CutePDF is also set to Landscape and Letter size. If I manually print, I get a landscape pdf printout.

Am I doing something wrong? (Manual and Help file are a tiny bit vague about the orientation setting, but I did read them!)

Thanks.
Jon
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Most... well, all in my experience... of the PDF print drivers have some very odd ways of handling some settings. For example darn near ALL of them expect a filename to be specified only within the Print dialog box and DPlot has to jump through hoops for Adobe PDF, PDF995, PDFcamp Printer, and docuPrinter to be able to specify the output filename programmatically. I suspect this is a similar problem. I don't have CutePDF installed at the moment but will look into it soon. Thanks for the head's up.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

Looks like all of the setting "took", ie, the 0.3" margins and everything is set to landscape, yet the printout is portrait through the macro. If I immediately manually print, it's landscape, just as I wanted, with the correct margins.

I leave the filename blank, and let the CutePDF print dialog come up, so I have a chance to rename the file and change locations. Normally, CutePDF defaults to the file name being printed and to my "C:\Temp" directory, which it did for the macro as well, but printed portrait.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Found the problem and fixed it. Unfortunately there's nothing you can do about it but wait for the next update. Thanks for your input.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

Thanks. No problem.
Post Reply