B
Bill Nguyen
I'm getting this error message trying to print to any networked printer:
"Analysis Server: Invalid printer specified"
This just happened today!
I had no problem printing to these printers from Crystal report (in
VB.NET) before using the following codes:
Private Function AddPrinters()
Dim prtdoc As New PrintDocument
Dim strDefaultPrinter As String = prtdoc.PrinterSettings.PrinterName
Dim strPrinter As [String]
For Each strPrinter In PrinterSettings.InstalledPrinters
cbPrinter.Items.Add(strPrinter)
If strPrinter = strDefaultPrinter Then
cbPrinter.SelectedIndex = cbPrinter.Items.IndexOf(strPrinter)
End If
Next strPrinter
End Function
mprinterName = Trim(cbPrinter.Text)
myReport.RecordSelectionFormula = mSelection
myReport.PrintOptions.PrinterName = mprintName
myReport.PrintToPrinter(1, True, 0, 0)
Thanks
Bill
"Analysis Server: Invalid printer specified"
This just happened today!
I had no problem printing to these printers from Crystal report (in
VB.NET) before using the following codes:
Private Function AddPrinters()
Dim prtdoc As New PrintDocument
Dim strDefaultPrinter As String = prtdoc.PrinterSettings.PrinterName
Dim strPrinter As [String]
For Each strPrinter In PrinterSettings.InstalledPrinters
cbPrinter.Items.Add(strPrinter)
If strPrinter = strDefaultPrinter Then
cbPrinter.SelectedIndex = cbPrinter.Items.IndexOf(strPrinter)
End If
Next strPrinter
End Function
mprinterName = Trim(cbPrinter.Text)
myReport.RecordSelectionFormula = mSelection
myReport.PrintOptions.PrinterName = mprintName
myReport.PrintToPrinter(1, True, 0, 0)
Thanks
Bill