on ‎2010 Mar 18 3:06 PM
Environment: VS 2008, CR 2008, Windows 2003 Server
I have set of CR templates (my reports) that has dynamic field for picture. The source of the picture is base on formula. The actual picture files are located locally. When I open the CR template in Designer, it perfectly display the picture base on formula I have. The same result when I load the CR on Crystal Report viewer in an ASP.Net app, this includes the Export To file function of CR viewer.
However, when I load the CR on a ReportDocument object and use the ExportToDisk method, the output file does not have picture (or it always shows the default picture). This is the same set of CR templates I used on ASP.Net app and same logic on how I load data on my report. I really don't understand the reason why the dynamic picture works fine on Crystal Report viewer and designer and not when exporting it to a file using ReportDocument object.
I want to export my reports to PDF / Excel / Word.
Anyone can help me find the possible issue or things I need to consider?
Thanks in advance guys.
Alvin
Request clarification before answering.
Wow. This is a twist on a familiar issue... Normally it is the viewer that does not have the images and export does...
Make sure you have SP 2:
https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
and while we're at it, FP 2.5 on top of that:
https://smpdl.sap-ag.de/~sapidp/012002523100002975192010E/cr2008fp25.exe
If that does not help, is this happening on your dev system or after you deploy?
Export to rpt file format, then open the report in the CR designer. Are the pics there?
What about when you export to PDF?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Luder for very prompt response.
I think I forgot to mention the important constraint of my inquiry. I have 2 separate programs, 1 is ASP.Net web app where I have CR viewer to display report and an automatic export to PDF function once you open a report. Another program is a stand-alone desktop app for batch processing of reports.
On ASP.Net web app, I used the CR 12 runtime reference. While in desktop app, I used CR Basic included library in VS2008 .
So, in my ASP.Net web app, the dynamic source of picture works perfectly. The problem is on my desktop app, where the app does not recognize the source of picture. Is this because of limitation of CR Basic?
PS: The reports templates are created in version of CR 11 and 12 designer.
Alvin
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.