Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10022

Re: "Database logon failed" error while trying printing a document

$
0
0

If I comment all the SetParameterValues its the same error.

I got this from the StackTrace:

 

at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

   at CrystalDecisions.ReportSource.EromReportSourceBase.HandleException(Exception exception)

   at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

   at FrizerskiSalon2014.PrintBill..ctor(DataCompany _c, DataOrder _o, DataLogin _l)

 

PS: what did you mean by "Can you attach the report here? (Rename it to *.txt, hit the "Use advanced editor" and attach."? Where can I get the report?

 

What would it mean, do you have any clue? But keep in mind that all the code was working fine in CR for VS2008 Basic.

 

PS2: you know what is funny? I have two other Reports to print (different ones) but with the exact same code as this one from 1st post, and printing works! I dont know why it doesnt this one.


Viewing all articles
Browse latest Browse all 10022


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