Navigation:  Programmer's Reference > Sending data to DPlot from another application >

FilePageSetup macro command

Print this Topic Previous pageReturn to chapter overviewNext page

Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [     ]. Macro commands should not include the brackets.

Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).

The pipe symbol (|) in the command syntax indicates that a parameter is optional, and should not be included in your macro unless otherwise noted.

All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.

A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.

JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.


 

[FilePageSetup(top,bottom,left,right,orientation,papersize,width,height)]

JR   Viewer

Sets the printer margins (in inches) for the currently selected document, and optionally sets the page orientation and paper size. All parameters are optional and must be separated by commas. Omitted parameters are represented by 2 successive commas with no intervening spaces. If orientation is included, subsequent printouts will default to Landscape orientation for orientation=2, or Portrait orientation otherwise. papersize must be included (and set to 0) if you want to specify the width and height, in inches. Valid codes for papersize are:

0

 

User-defined size

22

 

Envelope #12 4.75 x 11 in

1


Letter 8.5 x 11 in

23


Envelope #14 5 x 11.5 in

3


Tabloid 11 x 17 in

24


C size sheet

4


Ledger 17 x 11 in

25


D size sheet

5


Legal 8.5 x 14 in

26


E size sheet

6


Statement 5.5 x 8.5 in

27


Envelope DL 110 x 220 mm

7


Executive 7.25 x 10.5 in

28


Envelope C5 162 x 229 mm

8


A3 297 x 420 mm

29


Envelope C3  324 x 458 mm

9


A4 210 x 297 mm

30


Envelope C4  229 x 324 mm

10


A4 Small 210 x 297 mm

31


Envelope C6  114 x 162 mm

11


A5 148 x 210 mm

32


Envelope C65 114 x 229 mm

12


B4 (JIS) 250 x 354 mm

33


Envelope B4  250 x 353 mm

13


B5 (JIS) 182 x 257 mm

34


Envelope B5  176 x 250 mm

14


Folio 8.5 x 13 in

35


Envelope B6  176 x 125 mm

15


Quarto 215 x 275 mm

36


Envelope 110 x 230 mm

16


10x14 in

37


Envelope Monarch 3.875 x 7.5 in

17


11x17 in

38


6 3/4 Envelope 3.625 x 6.5 in

18


Note 8.5 x 11 in

38


US Std Fanfold 14.875 x 11 in

19


Envelope #9 3.875 x 8.875 in

40


German Std Fanfold 8.5 x 12 in

20


Envelope #10 4.125 x 9.5 in

41


German Legal Fanfold 8.5 x 13 in

21


Envelope #11 4.5 x 10.375 in

 



Please note: Many printer drivers will not accept all of the paper size codes above, and most will not accept custom width and height values unless they happen to match dimensions supported by that printer. If a paper size is rejected by a selected printer, the default paper size for that printer will be selected. Virtual printer drivers like Acrobat Distiller will generally accept any custom paper size.

 


Page url: https://www.dplot.com/help/index.htm?filepagesetupcommand.htm