cancel
Showing results for 
Search instead for 
Did you mean: 

how to retrieve print settings from .rpt file?

Former Member
0 Kudos

I have crystal reports 10 report file, in which I edited the printer settings... collate and number of copies(2) and saved it.

now i want to print it from VB6. I am using a customized print dialog form (not using the common dialog control)

I want to get the collate and number of copies settings from the rpt file. how can I get those details. any API available?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Need more info,

What report engine are you using, .NET, RDC, etc.?

Former Member
0 Kudos

I am using RDC (craxdrt.dll) in VB6, not the .NET report engine

Sorry for the delay in replying...

0 Kudos

Hi Samkar,

It will look something like this:

crReport.SelectPrinter "pscript5.dll", "HP LaserJet 8150 Series PS", "LPT1"

crReport.PaperOrientation = crPO

crReport.PaperSize = crPSS

crReport.PaperSource = crPSR

crReport.PrinterDuplex = crPRDPDefault

crReport.PaperSource = crPRBinEnvelope

Depending on the version you have depends on if the function is available. It may be that 10 did not h ave the Papersource member.

Thanks again

Don

Answers (0)