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

Re: Job HasRecords property

$
0
0

rc is the value I return from the procedure. It is initially set to true and any error will set it false.

 

"Also, there is no Outputtoprinter API in .net, but looks the same as PEOutputtoprinter API when using crpe32?"

 

That is correct. This app started it's life around Crystal version 4 or 5. All printing is wrapped in a class that looks somewhat like the old CRPE API. Hence we only need to change in one place when you decide to give up on .NET . NET is just a wrapper around COM anyway

 

The pointer "jobb" here is a pointer to our wrapper class. Where it actually does a: m_Report->PrintToPrinter(nCopies,true,0,0); where m_Report is instantiated earlier:

m_Report = gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument(); //ReportDocument ();

 

No, "Suppress Printing if no records" is not set for that report. Will check if that helps. The actual problem report is one of the first ever written, back in 1999 and has only been expanded and modified since then.

 

Why I started looking into this was because I have seen reports of this one being blank, at random. When you try again it works fine, which is funny. It is quite simple apart from that, pulls from an SQL Database. So I added code to detect if it is empty and also upgraded the runtime. Let's hope either of those helps


Viewing all articles
Browse latest Browse all 2796

Trending Articles



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