Forum Post: RE: How to initiate Crystal Report from batch-session

  • Thread starter Thread starter Rob Debbage
  • Start date Start date
Status
Not open for further replies.
R

Rob Debbage

Guest
Hi, Unfortunately, with CR 2011 it doesn't work. Can't connect to the CrystalRuntime OLE. I'm afraid that this is expected. SAP / Business Objects deprecated and removed the Crystal COM controls from Crystal Reports 2008 onward. Unless you have an old copy of Crystal Reports 9 / 10 / XI / XI R2 laying around to install (and assuming that they'll work on current Windows releases) then old COM-based Crystal code won't work. The alternative is to switch to use Crystal's .NET controls (assuming that you are on at least 10.2x for PROWIN32 or 11.x for _PROGRES) which should allow you to achieve the same functionality. We do not have a specific article how to call the controls in batch but the sample code attached to this article should give you a starting point: How to override the database connection parameters within a Crystal Reports report when using .NET objects knowledgebase.progress.com/.../000045913 Whilst the attached code does make use of the Crystal .NET Viewer, it looks like this could be stripped out leaving the sections that load the report and establish the database connection. Kind regards, Rob

Continue reading...
 
Status
Not open for further replies.
Back
Top