Products Downloads


French version


 


Important: This function only concerns Crystal Reports reports.


This function is used to set permanently or for the current session the following print parameters for the PrinterNum printer number:

  • Orientation,

  • Paper size,

  • Tray selection,

  • Duplex mode,

  • Number of copies (not managed by the print configuration file),

  • Copy collation (not managed by the print configuration file).


Context

  • Windows client,

  • Adelia Cloud client.


Parameters

NUM_BIN_2

PrinterNum

Number of the printer (from 1 to 9).

BOOL

Permanent

Specifies whether or not the new parameters are taken into account for the current session only (*FALSE) or permanently (*TRUE) (the configuration file will be modified).

NUM_BIN_2

Orientation

1 = Portrait, 2 = Landscape.

NUM_BIN_2

PaperSize

Indicates the size of the paper used for the print job.

DefaultPaperSize

0

Paper10x14

16

Paper11x17

17

PaperA3

8

PaperA4

9

PaperA4Small

10

PaperA5

11

PaperB4

12

PaperB5

13

PaperCSheet

24

PaperDSheet

25

PaperEnvelope10

20

PaperEnvelope11

21

PaperEnvelope12

22

PaperEnvelope14

23

PaperEnvelope9

19

PaperEnvelopeB4

33

PaperEnvelopeB5

34

PaperEnvelopeB6

35

PaperEnvelopeC3

29

PaperEnvelopeC4

30

PaperEnvelopeC5

28

PaperEnvelopeC6

31

PaperEnvelopeC65

32

PaperEnvelopeDL

27

PaperEnvelopeItaly

36

PaperEnvelopeMonarch

37

PaperEnvelopePersonal

38

PaperEsheet

26

PaperExecutive

7

PaperFanfoldLegalGerman

41

PaperFanfoldStdGerman

40

PaperFanfoldUS

39

PaperFolio

14

PaperLedger

4

PaperLegal

5

PaperLetter

1

PaperLetterSmall

2

PaperNote

18

PaperQuarto

15

PaperStatement

6

Papertabloid

3

Important: Some parameters may not be valid, depending on the printer used.

NUM_BIN_2

Tray

Indicates the printer's paper feed source.

PRBinAuto

7

PRBinCassette

14

PRBinEnvelope

5

PRBinEnvManual

6

PRBinFormSource

15

PRBinLargeCapacity

11

PRBinLargeFmt

10

PRBinLower

2

PRBinManual

4

PRBinMiddle

3

PRBinSmallFmt

9

PRBinTractor

8

PRBinUpper

1

Important: Some parameters may not be valid, depending on the printer used.

NUM_BIN_2

Duplex

1=None, 2=Long side, 3=Short side.

NUM_BIN_4

NbCopies

Number of copies to be printed

NUM_BIN_2

Collate

Used to collate the printed copies of the documents.

0=Copies not collated,

1=Copies collated.

BOOL

ReturnCode

Return code for the operation:

*TRUE   if the operation was successful.

*FALSE  if the operation failed.



Note: The parameters the default value of which is not to be modified (value defined in the configuration file) must be set to –1.



Example

PrinterNum

Permanent

Orientation

PaperSize

Tray

Duplex

NbCopies

Collate

= 1

= *FALSE

= 1

= 9

= -1

= 2

= 1

= 0


*sets the parameters for the session (lifetime of the process)

*Portrait

*A4

*default value defined in the configuration file

*Two-sided printing relative to the long side

*1 copy only


CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSetPrinterEx' PrinterNum Permanent Orientation PaperSize Tray Duplex NbCopies Collate ReturnCode


List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette