Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Crystal Report Error in Windows Server 2012 - Load Report Failed

$
0
0

Badly needed help regarding the above topic. Thanks in advance for helping.

 

We have a web application experiencing this error after deployment in WinServer 2012 IIS 8. Previously, the application was deployed in WinServer 2003 but we dont experience any errors like this. We tried searching the net for solutions and these are the following things we've try doing so far.

 

- Installed Crystalreportsviewer13 64 bit in Server. After that, transferred the asp_net client folder in the IIS folder same level of our application.

- We discovered that upon browsing the asp_net client in IIS itself, error 500.24 is appearing in the server. Checked the permission for folder asp_net client. Add IIS_USR permission read execute and write on the folder and still same Load Report Failed.

- Next we tried integrating the crystalreportsviewer13 inside the application same Load Report Failed error.

- Installed Service Pack 8 for CrystalReport but to no avail.

 

Is there any way to get the real error behind the "Load Report Failed" error? Also, is there any other way to determine what else can be done to resolve this issue? Thanks in advance.


Print the PDF fille on Client side

$
0
0

Hi,

 

i created the PDF file on server if client click print button the PDF file print on the client side.

 

Is it possible to do that. if you do Please help me

invalid group section error when running report containing command.

$
0
0

The error is the following (displayed in Dutch, spent some time changing the language settings, but still CR persists in showing the message in my mother tongue, but the gist of it is: invalid group section or something like that) Process error: Ultimo.Services.ReportService.Core.ReportingException: Error creating export file: LtapList02-01.rpt ---> CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde. ---> System.Runtime.InteropServices.COMException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde.  at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)  at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  --- End of inner exception stack trace ---  at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)  at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options) etc. The command is phrased thus: select * from {?DatabaseSchemaPrefix}applfn_LtapStructure(). The error is somehow associated with the parameter used in this command. If I remove it and replace it by the value used when running the report, the report runs successfully. Also, strangely, when I define a default value for the parameter in the command and programmatically add a value for it by the method call parameterFieldDefinition.CurrentValues.AddValue(), also the report will run flawlessly. Without the default value it will fail. But when I want to run the command without a value for the parameter (parameterFieldDefinition.CurrentValues.AddValue("")), so for it to be empty, while a default value is defined for it too, also, running the report will result in an error. My question is: has anyone ever seen this type of thing happening? And is there a solution?

ReportDocument.Export() raises "Missing Parameter Values" exception

$
0
0

Hi

 

Recently I encountered a question about SAP Crystal Report that I have a rpt file with several sub reports and I am required to make the data source to be XML with http/https URLs. I created different .NET pages which returns XML stream as data source for both main report and sub reports in my rpt file, and also created a sub report links which pass dynamic parameters from main report to the sub reports, everything worked fine when I entered the necessary parameters only for the main report in the design tool, both the main report and sub reports displayed perfectly.

But it did not work in my .NET application which export the reports to PDFs, I referenced “CrystalDecisions.CrystalReports.Engine” and some other necessary DLLs into my project, and then I created an instance of ReportDocument, loaded the rpt file, set parameters which used in the main report, set connection info, and at last when I export the report it throw out an exception with “Missing Parameter Values” error message, even though I removed the sub report links which pass parameters from main report, the exception still occurred, but when I removed all the sub reports, and only export the main report it worked!!


Here is a result of my attempts:

 

Main Report

Sub Report

Result

1

With XML data source

No report

Works fine with dynamic parameters set to the http/https url which returns an xml results

2

With XML data source

Pass a static value and print it on the report

Works fine.

3

With XML data source

Create a SQL command WITHOUT any parameters passed from main report

Works fine

4

With XML data source

Create a SQL command WITH a dynamic parameter passed from main report

Works fine

5

With XML data source

Create a xml data source WITHOUT any parameters passed from main report

Failed with "Missing Parameter Values"

6

With XML data source

Create a xml data source WITH a dynamic parameter passed from main report

Failed with "Missing Parameter Values"

 

I am confused about this issue for a few days, is there any ideas or helps? many thanks!

Could not load file or assembly 'CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

$
0
0

We are migrating a .NET application from Windows Server 2003 to Windows Server 2008. However, it failes due to some missing assemblies on new server. Can you please help us to find these missing assemblies. We appreciate any help.

 

 

Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

 

Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

 

Source Error:

Line: 50

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.4216; ASP.NET Version:2.0.50727.4223

Failed to load database information. Error in {GUID}.rpt

$
0
0

Hi


I have a C# windows service that load a rpt file and export it to PDF

I am required to use XML as data source for the rpt file, and in the IDE of CR 2013 it always works fine via local XML file, and also I create a http/https pages which returns a XML stream, it still works,  preview fine.

And then I debug into my unit test project, load the rpt file, set the necessary parameters, and at last call the ReportDocument.Export(), the PDF was generated successfully.

But when I deploy the windows service in my local machine, it always throw out an exception with the error message of “Failed to load database information. Error in {GUID}.rpt” at ReportDocument.Export().

 

Here is the environment of my local machine:

  • Windows 7 (64 bit)
  • NET framework 4.0 / VS2010 build with “Any CPU”
  • CR2013 with the latest run-time packages for VS
  • I also have crdb_xml.dll in both of the following paths:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86

 

I doubt that I missed something in my environment, is there any suggestions? Thanks a lot!

Failed to load database information. Error in File ReportName {E420E88A-5947-4925-844E-75E6311D3EB3}.rpt: Failed to load database information.

$
0
0

Hi All,

We've been running CR for VS2010 for a number of years in our web app without any issues. Using the same code we recently upgraded our application to support x64 and we have run into this error on our QA servers:

 

Failed to load database information. Error in File ReportName{Guid}.rpt. Failed to load database information.

 

Here's are server setup:

Windows Server 2012 Datacenter x64

SAP Crystal Reports Runtime Engine for .Net Framework (64-bit)

IIS 8

 

Database Server

Oracle 12c

 

Interestingly, Crystal Reports works fine on our dev machines and it also works on our dev machines if I connect to the QA Database server directly. So I've ruled out any Oracle issues.

 

I believe the permissions are set up correctly for CR to run, but I'd like to know what permission CR needs to run. I can't find a definite answer reading the forum posts or on the WIKI.

 

I've used Process Monitor and there seems to be some permission issues with the uf12manager.DLL. See attached document.

 

I'm really stuck here and any help is appreciated.

 

Thanks!

I get Log on Error While i VerifyDatabase Function calls

$
0
0

Am Using Cr Viewer and I Converted to 4.5 Frame Work (.Net). so i change to 13.0.8 Version of Crystal Report. Still i get same errir While am Connecting ie ReportDcoument.VerifyDatabase().

 

Please Some one help me to get out of this..

my code is this


License and Maximum Report Processing Jobs Limit error how to overcome

$
0
0

HI,

 

 

I am using Crystal Reports  XI  Release 2.  .Net 2010 c# web forms and published  IIS7  windows serer 2008 . everyday i  am getting the above error and i have tried to close and dispose the objects , but some  its not working correctly and when i am checking the temp folder i can see  the reports which is not disposed. as soon as i restarted the iis its working , how i can overcome the challenges .

 

if anybody can help this matter i will be very obliged.

 

Attached the aspx pages

 

Message was edited by: Ludek Uher

How to Dispose Report Object while using session

$
0
0

Dear SAP TEAM ,

 

Please help me to solve  this queries , I am struggling with below points from last  one week . searched lot of forums and blog but I didn’t get a answer ,

 

And My Query is 

 

I am using VS 2010 and inbuilt  sap crystal report  version 13 with backend oracle .

 

Crystal report is loading for each and every action and hitting the database every time ,  while going to accounts reports  we have 15 – 20 page of data’s

When user navigate from 1st page to 2nd page , report against hit the DB .

 

To avoid this problem , I have handled session in aspx page. So  1st page alone will load and after every action data’s will pull from session , its working fine .

 

BUT when I start to use session I can’t able to DISPOSE or CLOSE object from TEMP file . I have pasted my code and also attached sample file . please check and update .

When I am navigate to 2 nd page I am getting error “OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT”

 

ProtectedSub Page_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load

        IfNot Page.IsPostBack Then

Session("Report") = Nothing

        EndIf

        If Session("Report") IsNothingThen

rpt = NewReportDocument

rpt.Load(Server.MapPath("CrystalReport1.rpt"))

Session.Add("Report", rpt)

rpt.SetParameterValue("Name", "SAP CRYSTAL REPORTS")

CrystalReport.HasToggleParameterPanelButton = False

CrystalReport.ToolPanelView = ToolPanelViewType.None

CrystalReport.ReportSource = CType(Session("Report"), ReportDocument)

        Else

rpt = NewReportDocument

CrystalReport.ReportSource = CType(Session("Report"), ReportDocument)

        EndIf

    EndSub

    ProtectedSub Page_Unload(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Unload

        If rpt IsNotNothingThen

rpt.Close()

rpt.Dispose()

        EndIf

    EndSub

    ProtectedSub CrystalRreport_Unload(ByVal sender AsObject, ByVal e As System.EventArgs) Handles CrystalReport.Unload

        If rpt IsNotNothingThen

rpt.Close()

rpt.Dispose()

        EndIf

    EndSub

EndClass

Where can we get the crpe32.lib for C++ x64/x86 development ?

$
0
0

We develop crystal solutions for a long time. Prior to version 11.0 there was a development package containing the crpe32.lib delivered. In the current version there is only the .Net or java package available for development.

Because the crpe32.dll is still deployed with the runtime version 13.x, we are looking for the crpe32.lib to continue our c++ development. Is there a chance to get the crpe32.lib from SAP?

 

Thanks in advance,

Carsten

Crystal reports

$
0
0

I have problem while generate the crystal reports as

  instead of .rpt  i get .mht

 

Display like this

as

Crystal Reports for Visual Studio 2010 is a free download for adding presentation quality reports to WPF, WinForms, and ASP.Net Web Sites.

Major new features include:

  • 64-bit runtime
  • WPF viewer
  • Enhanced embedded report designer
  • Support for exporting to XLSX

sap.jpgLearn more and download Crystal Reports for Visual Studio 2010 today.

Exception trying to view a RPT

$
0
0

Hello,

 

Since I've installed CRforVS 13.0.8 I'm not able to view any report.


I always getan exception whenI linktheReportDocument to the CrystalReportViewer.ReportSource


Here is my code, in case it helps:

 

ReportDocument rpt = new ReportDocument();

rpt.Load(Report);

_conecta(rpt); // connection to DB

 

CrystalReportViewer lRptV = new CrystalReportViewer();

lRptV.ReportSource = rpt;

 

This raises an exception:

 

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

   en CrystalDecisions.Windows.Forms.MainReportDocument.get_ReportSource()

   en CrystalDecisions.Windows.Forms.ViewerDocument.GetAvailableExportFormats()

   en CrystalDecisions.Windows.Forms.PageView.CreateReportDocument(String rptURI)

   en CrystalDecisions.Windows.Forms.PageView.CreateNewReportDocument(String pageName)

   en CrystalDecisions.Windows.Forms.CrystalReportViewer.CreateReportSource(Object reportSource)

   en CrystalDecisions.Windows.Forms.CrystalReportViewer.set_ReportSource(Object value)

   en GEI_CrystalPru.InformePru.PrevisualizaEnForm(Form afForm) en C:\VS2010\SBO\Otros90\GEI_CrystalPru\InformePru.cs:línea 111

 

The report can be printed or exported without problems...

 

Also, this worked in versión 13.0.5

 

Thanks in advance.

How to automatically/programmatically "publish" reports for local users of Crystal Reports 2011?

$
0
0

Hi,

 

  I'm not sure if I'm using the correct Crystal Reports terminology here, so apologies in advance.

 

  We've got Crystal Reports 2011 and are developing an application which comes with a number of report files (.rpt) as part of its installation. These reports are used to provide a view onto the database that our application writes to.

 

  Is it possible to automatically manage the collection of reports that are available to users of the Crystal Reports application? Ideally this would be done as part of our application's installation/upgrade procedure. In the case of upgrades, it is possible that some report files may be modified, some removed and others added. (i.e. as the application database's underlying schema is modified or new features added/deprecated).

  I believe this could be achieved manually by starting up Crystal Reports and adding and removing reports to/from the Workbench, but we'd like this list of reports to be available to all users on the PC (Crystal Reports is installed on the same PC as our application), and for the update procedure to be something that was automatically scriptable or programmable in something like .NET.


  I've read about the Repository (which sounds like a solution to making reports available for all users), but suspect that this is only usable after some other product(s) has been installed? I'm not entirely sure what products they would be.

 

  Could you please let us know whether this can be achieved with the version of Crystal Reports we've got, and if so, how?

 

  The version of Crystal we have is: SAP BusinessObjects, CR Developer, Version 14.0.4.738 RTM, Product Type: Full

 

  Many thanks in advance,

    -Nige

crystal report 13.0.2 document.ExportToStream html40 file not found issue

$
0
0

when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported missing file with the .htm extension. bug?


CR for vs2008 not connecting on Windows Server 2012R2

$
0
0

I have an application running on Windows Server 2008R2 which I urgently need to mirror on Windows Server 2012R2.

 

However, my crystal reports basic runtime for vs2008  version 10.5.1.0

and crystal reports basic runtime for vs2008(64) version 10.5.0.0  brings up the report but doesn't seem to connect to the

database  (it seems to be pulling in a null dataset)

What am I doing wrong?  [I tried opening all incoming ports, etc, etc]

This is the web.config line: 

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

[changing this crashes the application]

 


Crystal Reports Hangs on .Load event

$
0
0

Hi ,

 

We are using CR 2011 on Windows environment (2008 R2) and  run the following workflow.

 

1. We have created a rpt with 9 sub reports.

2. We would like to print the port to a particular printer and hence have set the flag <NO Printer> on the report

3. The application is a windows based application and not a web based application.

4. We have tested the report by launching the report and printing it on the desired printer.

5. We have a windows service that executes the code of reading the report and printing it out as a pdf / printer.

6. Step 4 is an event based activity that occurs as frequently as every 2 minutes.

7. The database is Oracle 11g

 

PROBLEM:

 

1. Generally all runs well, however once / twice a day the report hangs.

2. We have created a dump file and observed that the hang occurs on .LOAD event.

3. We are using the .LOAD with a single parameter that of the report name.

4. We also observed that the spooler service hangs

5. We are disposing the report immediately after printing it.

 

After the problem occurs we are forced to start the windows service and the printer spooler service.

 

Solutions tried so far:

 

1. Changing the No Printer flag did not give any results.

2. We have created a job that restarts the windows service and the spooler service after a period of 30 mins. - This has minimized the occurances but not eliminated the problem.

 

Pseudo code:

 

ReportDocument CR = new ReportDocument()

 

CR.Load(<report file name);

 

//Set Main data Source

CR.Database.Tables[0].SetDataSource(ADODB.Recordset)

 

//set sub reports

CR.Subreports[<Index>].Database.Tables[0].SetDataSource(data table)

 

//here it prints on default printer or the set printer. (Printer s are UNC printers, however we register them - they are visible as local printers on the given machine -  locally before printing)

 

CR.PrintToPrinter(noOfCopies, false, fromPage, toPage);

 

CR.Close()

CR.Dispose()

 

IF required we can also provide the rpt file and any other details.

 

Our customers are really suffering cause of this and any help would be really appreciated.

 

Thanks

 

Anil

Print Issue in VS 2010 Crystal Report Version 13.0.1.220

$
0
0

Hi Friends,

I am new user for SAP crystal report,

can any one help me for

 

Print Issue in VS 2010 Crystal Report Version 13.0.1.220

HOW WE FILL CR WITH TABLEADAPTER INSTEDS OF DATAADAPTER

$
0
0

HELLO DEAR, CAN YOU HELP ME, I WANT FILL CRYSTAL REPORT WITH TABLEADAPTER IN STED OF DATAADAPTER IN VB 2008, WITH DATAADAPER IT DO IT NORMAILY IT WORKS FINE, BUT WHEN I CREATE DATATABLE WITH UNION QUERY (FOR UNPIVOT DATA) THEN IT NOT SHOW ALL DATA (LIKE WHICH DATA I UNPIVOT), SAME HAPPEND IN REPORT.RDLS WHEN I TRY WITH DATAADAPTER, BUT IT WORK WITH TABLEADAPTER IN REPORT.RDLS, SO I THINK THAT I WILL TRY WITH TABLEADAPTER INSTED OF DATAADAPTE, MY CODE AS BELOW WHICH I USE WITH DATAADAPTER,

Imports System.Data

Imports System.Data.OleDb

Imports WindowsApplication1.OledbTableAdapter

Imports WindowsApplication1.MasterDataSetTableAdapters

 

Public Class OledbTableAdapter

 

End Class

Module Module1

    Public Cnn As New OleDbConnection

    Public Cmd As New OleDbCommand()

    Public Dr As OleDbDataReader

    Public Mcmd As New OleDbCommand()

    Public mDr As OleDbDataReader

    Dim myAdapter As New System.Data.SqlClient.SqlDataAdapter

 

    Public data As New Data.DataSet

    Public ds As New DataSet

    Public CusSearch As String 'Search Customer

    Public da As New OleDbDataAdapter

    Public DTT As New MPatient1TableAdapter

    Public dt As New DataTable

 

    Public conn As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MASTER.accdb")

 

    Public adp As New OleDbDataAdapter(Cmd)

 

    Public Sub OpenConnect()

        Try

            Cmd.Connection = conn

            conn.Open()

            Cmd.CommandType = CommandType.Text

            Mcmd.Connection = conn

            conn.Open()

            Mcmd.CommandType = CommandType.Text

 

        Catch ex As Exception

            ' MsgBox(ex.Message)

        End Try

Public Class Form2

 

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

    End Sub

 

    Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load

 

        Dim report As New CrystalReport1

        dt.Clear()

        If form1.TextBox3.Text <> "" Then

            Cmd.CommandText = "Select * from  [Final_Report] where LabNo ='" & form1.TextBox3.Text & "'"

            OpenConnect()

            da.SelectCommand = Cmd

            da.Fill(dt)

            report.SetDataSource(dt)

            CrystalReportViewer1.ReportSource = report

            CrystalReportViewer1.Show()

        End If

    End Sub

 

End Class

Crystal Report for VS SP6 crashes randomly on Windows Server 2008 R2

$
0
0

Dear community,

 

I'm in front of a very incomprehensible printing issue.

 

I have a .NET (4.0) application, hosted on a server, that generates reports and spooled them to a dedicated printer spooler server.

 

I'm using Crystal Report XI SP6 for the document's generation.

 

 

This application run perfectly on Windows Server 2003 without any crash.

 

 

Now, both processing and printer spooler servers have been migrated on Windows Server 2008 R2.

 

When I reach printers with the network name (\\myserver\myprinter\), I have got randomly crashes with comexception, win32exception or invalidprinterexception (with a failure rate close to 50% !)

 


We tried lots of ways to solve this issue :

 

- grant user rights -> KO

 

- upgrade Crystal Report to SP8 -> KO

 

- change printer driver -> KO (crashes occures with HP, LEXMARK, CANON.... printers)

 

- customize print processor of printer driver.... -> KO

 

 

 

The only workaround we found : to map each printer in local to the processing server.

(but this trail is not possible because of the very large number of servers and printers we have)

 


So... I don't understand why by this way we didn't have any crash ?

 

Is there a specific setup for PrinterSettings, before calling the method "PrintToPrinter" of Crsytal Report Framework, when we execute the application under WS 2008 R2 (64 bits kernel English)?

 

How can I be sure that the origin of these crashes doesn't come from Crystal Report ?

 

 


Any help will be very very appreciate !

 

Thanks in advance
Julien

 


Examples of exceptions

 

#1

 

System.ComponentModel.Win32Exception (0x80004005): The handle is invalid
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
   at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
   at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintToPrinter(TransfertPrintData data, ReportClass report)

 


#2

 

System.Drawing.Printing.InvalidPrinterException: Settings to access printer '\\myprinterspoolerserver\myprinter' are not valid.
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
   at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
   at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintToPrinter(TransfertPrintData data, ReportClass report)
   at Service.Printing.SIPrinting.PrintCrystalReportWithHeader(TransfertPrintData data)
   --- End of inner exception stack trace ---

 

Message was edited by: Don Williams

Viewing all 3636 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>