Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Cystal Report XI R2 11.5.9.1076 using RDC and VB6. SelectPrinter not work

I have been using crystal report since version 3.0

I am trying to re-directed a report output directly to a printer. (Not the default printer)

The following is the relevant code.

It executes, but the report doesn't go to the proper printer and in design mode it crashes the environment sometimes.

If PrinterName <> "" Then

Dim DriverName As String

Dim PrtName As String

Dim PortName As String

Dim Prt As Printer

For Each Prt In Printers

If UCase(Prt.DeviceName) = UCase(PrinterName) Then

PrtName = Prt.DeviceName

DriverName = Prt.DriverName

PortName = Prt.Port

Rpt.SelectPrinter DriverName, PrtName, PortName

Rpt.PaperSize = Printer.PaperSize

Rpt.PaperSource = Printer.PaperBin

Exit For

End If

Next

End If

Any help would be greatly appreciated.

Kalman Skulski

Former Member
replied

Hello, Kalman;

Are you installing the update on the Development system with a full install of Crystal Reports or on a client with runtime only?

I have not had any issues myself with SP4.0. What space is available on that system?

You may want to try downloading the Service Pack again to be sure it has not been corrupted.

I do not have any information on the expected release of SP 5.0 other than it is being worked on.

Elaine

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question