| View previous topic :: View next topic |
| Author |
Message |
bar Guest
|
Posted: Thu Apr 19, 2007 3:24 pm Post subject: TCrep VCL |
|
|
hello all
I have an application built on Delpho 7.0 in which i used a TCrep Component
for
report generation.
provided by the Seagate Crystal Reports for the Crystal Reports 10.0.
Everything is fine in the developer machine.
To setup on other pc, I took all the dlls required for my .exe file (through
PE Explorer).
But I can't able to open
the report on the client pc, i am getting error
"Error : 512 Print Engine Not Opened"
OpenPrintEngine <PEOpenEngine>
in the code i am supplying the ReportName to the TCrep component
Any solution greatly appreciated.
Thanks
SA |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Thu Apr 19, 2007 9:41 pm Post subject: Re: TCrep VCL |
|
|
The Crystal/BusinessObjects installers for CRPE-based apps, as a rule,
never work. You need to reverse-engineer what is required and write
your own installer.
Alternately, use the ActiveX controls instead of CRPE-based controls.
Those installers do work.
--
Craig Stuntz [TeamB] ˇ Vertex Systems Corp. ˇ Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Borland newsgroup denizen Sergio González has a new CD of
Irish music out, and it's good: http://tinyurl.com/7hgfr |
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Fri Apr 20, 2007 5:17 am Post subject: Re: TCrep VCL |
|
|
On Thu, 19 Apr 2007 13:24:57 +0300, bar wrote:
| Quote: | To setup on other pc, I took all the dlls required for my .exe file (through
PE Explorer).
|
You needed to register certain dlls, you also need to set certain
registry keys.
For Crystal XI Business Objects provides MSM (Installer) modules that
you can use.
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Fri Apr 20, 2007 6:28 pm Post subject: Re: TCrep VCL |
|
|
Marc Rohloff [TeamB] wrote:
| Quote: | For Crystal XI Business Objects provides MSM (Installer) modules that
you can use.
|
I haven't tested XI, but for versions 8, and 9 the supplied installers
for CRPE apps didn't work, and I rather doubt CRPE support has improved
since then as it's a deprected technology.
The installers work fine for apps which use the RDC, however.
--
Craig Stuntz [TeamB] ˇ Vertex Systems Corp. ˇ Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Please read and follow Borland's rules for the user of their
server: http://support.borland.com/entry.jspa?externalID=293 |
|
| Back to top |
|
 |
bar Guest
|
Posted: Sun Apr 22, 2007 10:32 pm Post subject: Re: TCrep VCL |
|
|
Hello Craig and Marc
Thanks for the replies
Finally i included all the dlls files and registered. The print engine is
loading.
My report uses a access file as database.
So in the crystal report IDE i used
Create New Connection->Database Files option
here i supplied only the .mdb file. I didn't use any ODBC or DSN Name.
The code in the developer pc is working fine.
Crpe1.ReportName := 'C:\Company.rpt';
Crpe1.Show;
i am not supplying any log on server properties.
In the client pc i am getting error
Error 536: Error in file C:\Company.rpt
Unable to connect InConnect Log On information
Execute <PEStartPrintJob>
Thanks
SA |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Mon Apr 23, 2007 7:22 pm Post subject: Re: TCrep VCL |
|
|
If the developer machine works and the client machine does not, then
your install is probably still not right. I wish I could give you more
help on this, but we haven't done a CRPE installation in three or four
years. The only thing I can really suggest is to use SysInternals file
monitor to see which DLLs the developer machine is loading when you
execute the report.
--
Craig Stuntz [TeamB] ˇ Vertex Systems Corp. ˇ Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
All the great TeamB service you've come to expect plus (New!)
Irish Tin Whistle tips: http://learningtowhistle.blogspot.com |
|
| Back to top |
|
 |
bar Guest
|
Posted: Sat Apr 28, 2007 9:23 pm Post subject: Re: TCrep VCL |
|
|
Thanks Craig Stuntz you suggestion help me a lot.
The reports are working in the client machine.
1.Now the export button in the print preview is not working, it is not
showing any dialog box.
2.The scrollbars in the print preview are working through the mouse.
How to resolve this.
Thanks
SA |
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Sat Apr 28, 2007 9:55 pm Post subject: Re: TCrep VCL |
|
|
On Sat, 28 Apr 2007 19:23:07 +0300, bar wrote:
| Quote: | 1.Now the export button in the print preview is not working, it is not
showing any dialog box.
|
You probably haven't copied and registered he dlls for he export
formats you need.
| Quote: | 2.The scrollbars in the print preview are working through the mouse.
So what exactly is he problem? |
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com |
|
| Back to top |
|
 |
bar Guest
|
Posted: Sun Apr 29, 2007 2:29 pm Post subject: Re: TCrep VCL |
|
|
| Quote: | 2.The scrollbars in the print preview are working through the mouse.
So what exactly is he problem?
|
Sorry i missed out "not", actually the scrollbars are not working though the
mouse scroller.
Any suggestion on the dlls required for the export option.
I tried ExportModeller.dll whichis not working.
Thanks
SA |
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Sun Apr 29, 2007 5:37 pm Post subject: Re: TCrep VCL |
|
|
On Sun, 29 Apr 2007 12:29:15 +0300, bar wrote:
| Quote: | Any suggestion on the dlls required for the export option.
I tried ExportModeller.dll whichis not working.
|
There is usually one for each file type you want to export. So the
name would have something to do with 'html' 'excel', etc.
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Mon Apr 30, 2007 6:26 pm Post subject: Re: TCrep VCL |
|
|
bar wrote:
| Quote: | Any suggestion on the dlls required for the export option.
|
On your development machine, run your app in the debugger. When you
click export, look at Delphi's event viewer. You'll see which DLLs get
loaded there.
--
Craig Stuntz [TeamB] ˇ Vertex Systems Corp. ˇ Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Want to help make Delphi and InterBase better? Use QC!
http://qc.borland.com -- Vote for important issues |
|
| Back to top |
|
 |
|