cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic picture location problem

Former Member
0 Likes
322

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

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

Former Member
0 Likes

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

Former Member
0 Likes

Ahhh. Yes. The dynamic picture feature was introduced in CR XI r2. So reports created in CR XI r2 or later and using this functionality will not work with CR 10.x runtime... (e.g.; CR 10.x is not forward compatible as far as new features are concerned).

Ludek

Former Member
0 Likes

Thanks again Ludek. So should I use CR 2008 library then? Or CR 2008 runtime will be fine (where I could find the managed code of 2008?) Because I could not add the reference on my desktop app.

Cheers. Have a good day!

Former Member
0 Likes

Yup. You will have to have CR 2009 installed on that box (if it is development). Make sure the CR assemblies referenced in your app are 12.x and then use the CR 2008 msm / msi to deploy the CR runtime to client machines. As long as everything is CR 2008, you'll be fine.

Ludek

Answers (0)