cancel
Showing results for 
Search instead for 
Did you mean: 

Display Image/PDF in Crystal report by send webservice as Datasource in CR Runtime

Former Member
0 Kudos

I am using this URL as web service datasource and trying to get the image/byte data by the web service.

http://10.24.229.6:8045/api/document/GetFile?project=cntr&contentid=no&username=admin&webuserid=1&is...

I am not going to use a code behind file or set crystal report datasource property from code behind.

Is it possible to show image/pdf into crystal report with send some parameter along with xml and web service datasource property directly.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member203619
Contributor
0 Kudos

Hi there,

A couple points:

1. You can embed a PDF into a report as an OLE object - however it will only display the first page as an image. And you can't base it off of a URL.

2. You can potentially embed the PDF via a URL by enabling all HTML using the "EncodeHTMLForSingleLineFieldObjects" switch. You could add some html embed code to display the PDF document - however the report would not print or export correctly.

e.g. [HKLM\Software\Business Objects\<version>\Components\DHTMLViewer\EncodeHTMLForSingleLineFieldObjects]

Value: no

Web.XML Param

<context-param>

<param-name>crystal_encode_html_for_single_line_field_objects</param-name>

<param-value>no</param-value>

</context-param>

Shawn