Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Printer CR 8.5 runtime

Status
Not open for further replies.

Bodrum81

Programmer
Nov 5, 2003
29
DE
Hello,

in my runtime (visual c++) is only the print button.
this button prints on the default printer.
But I want to select the printer where to print.

May anyone help me

thank you

ManagerReci
 
There should be a SelectPrinter method of the Report object:

SelectPrinter [DriverName], [PrinterName], [PortName]

Depending on how you're accessing the crystal print engine, the method may differ.

-dave
 
synapsevampire

CR 8.5

crystalviewer4.cpp

Visual C++ 6

RDC

But I didn't find a Method SelectPrinter
 
SelectPrinter is a method of the Report object. Do you have a craxdrt.tlh file? If so, look at line 515:

HRESULT SelectPrinter (
_bstr_t pDriverName,
_bstr_t pPrinterName,
_bstr_t pPortName );

I don't know specifically how to use it with C++, but the logic is:
Open up a report
Login to the data source/Set data source
Set the printer
Print or send to a Viewer.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top