Good Evening,
I have a strange bug, I have an application that calls a report developed with VS 2012 + CR 2012.
It turns out that when we connect by remote desktop (RDP) and print locally everything works correctly, but if I select a printer "redirected / mapped" gives an error of "StartPrinterDoc Call Was Not Issued"
bellow detail my single code :
Dim MyReporte As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim fRuta As String
Dim sSql As String
Dim sSql2 As String
Dim cn As New OleDbConnection(My.Resources.Conexion_Consultas)
fRuta = System.IO.Directory.GetCurrentDirectory + "\RPT\BL-" + CStr(Tab1_PO_Id_CC.Text) + "-PO-O.rpt"
sSql = "SELECT * bla bla bla ... "
Dim da As New OleDbDataAdapter(sSql, cn)
Dim ds As New DataSet
da.Fill(ds)
sSql2 = "SELECT * bla bla bla ... "
Dim da2 As New OleDbDataAdapter(sSql2, cn)
Dim ds2 As New DataSet
da2.Fill(ds2)
MyReporte.Load(fRuta)
MyReporte.Subreports(0).SetDataSource(ds2.Tables(0))
MyReporte.SetDataSource(ds.Tables(0))
MyReporte.Refresh()
Dim F_Nuevo_Crystal As New F_Crystal
With F_Nuevo_Crystal
.CRV.ReportSource = MyReporte
.ShowDialog()
End With
I use to print dialogform from crystal viewer.
Does someone help me pls ?
Thanks in Advance
Jaime
Message was edited by: Ludek Uher
Request clarification before answering.
Sounds like a permissions issue(?). See if Process Monitor tells you anything.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ludek
Right, strange but was printers rights. I fixed with this command:
1. Click Start, search for cmd.exe
2. Right click on cmd.exe
3. Click on 'Run as Administrator'
4. Type "C:\" w/o the quotation marks and then Press Enter.
5. Type CD\Windows\System32\Spool and then Press Enter.
6. Type Cacls.exe PRINTERS /e /g users:C and then Press Enter.
7. Restart the computer
Best Regards
Jaime
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.