Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help in Crystal Report Export Problems

Status
Not open for further replies.

asimasm

Programmer
Nov 27, 2000
62
AU
Hi
I have application designed in Visual Basic 6 that uses Crystal Report 8 RDC component for displaying reports. Now i am experiencing some problems. First Ihave created a form that contains the RDC control to display report and every time i need the report i create an instance of that form as

Dim m_frmNewReportInstVar As New frmReportDialog
'//Here pass other settings
m_frmNewReportInstVar.Show

and in the frmReportDialog form i create an Application and Report objects and then set this report object to the RDC control and then display report.

Now After the report is displayed and i select export i select it to Save to disk then the save dialog appears and here is where problem arises. If Now i shift focus from this save dialog to somewhere else then the application hangs and i am unable to shift the focus to my application any more and i have to end task it. I don't understand wt happens to it.
Now the second problem i have under win 20000 is that if i export to some thing from my application reports then i get an empty file. If i export it under winNT work station it works fine. If i export from within Crystal Reports Designer then the export works ok. I use Crystal reports 8

If any body has any solutions to my problems plz let me know. I am stuck in these problems for quite a while and am not finding any solution.

Thanks



 
If you're exporting to Excel under NT, and sometimes getting a blank file, this is a known bug. Create a command button to do the export and export it directly. Don't export from the viewer.
 
Hi
No i m not exporting to excel. I m exporting to a word file or text file then i am unable to export to these format under win 2000. Under win NT it works fine.

Asim
 
I have had this problem a multitude of times. The get around that I have used is when Exporting to Excel, try exporting to Excel 7 rather than 8. I hope this helps. It should work.
 
Is it working from within the development environment and not as a compiled exe on different workstations?

If the latter, you may not have all the necessary dll's loaded (maybe your NT box has all the files but the 2000 does not). I seem to recall that you need to include the appropriate u2*.dll, crxf_pdf.dll, or crxf_rtf.dll for whatever export option you need (if you see it in the list then I guess you can assume you've done so). It may also be that you are missing the ExportModeller.dll and/or crtslv.dll in one OS (which are required when exporting to pdf or rtf).

Oliver
 
Thanks everybody for replying. But i was unable to get off my problem.

1. I m not exporting to Exel at all. I m exporting to mail, Word or Text files.

2. As i had mentioned in my problem that it is working on my development platform( win 200) partially, which is that from within crystal report developement environment it is exporting correct but on the same mechine i m unable to export from my exe file. When i export from my application exe it produces an empty file with no contents. If it was bcz of dlls how does it work from within crystal report development environment and not from application exe.
On the other hand on win NT it is working fine both as a development platform and also on clent mechines.

3. One point is that as olichap(Programmer) mentioned about two dlls ExportModeller.dll and/or crtslv.dll. When i searched on my PC both of these are missing. Can u plz also tell me that what exactly are these dll needed for.


I will be looking forward for the reply.
Thanks in Advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top