Ok guys ... I am sorry that I am asking this question which has a lot of mix of technology.... I like to work with different platforms ...
Background:
I am using Adobe LiveCycle Designer 7.1 to work with secured forms, and generate PDF Reports on the fly (using XDP meaning XML Data Package). So far, I successfully used ASP.NET to generate LiveCycle Forms from the Server, and submit the PDF Form from the Server to ASPX Page, and process the form values on the server.
The Problem:
=========
I need now to include Charts and Analytical Data on the Generated PDF Forms by executing queries in ASP.NET on the server, generate DataSet Results which will be used to draw the Charts, and publish the charts on the PDF Form (LiveCycle Designer PDF).
Adobe LiveCycle Designer 7.1 Form has "Image Field" which is very similar to tab in HTML. It has Source URL Property, and if you assign to it the source of the chart as PNG or JPG then it will display the image on the PDF properly.
I am thinking to use some kind of tool or a method, where I can pass the DataSet/DataTable which has the graph data to be drawn, generate the Graph, Save the result as image file on a sub-folder under the Root Web Folder, assign the URL to the PDF Form Image Filed and that is all what needs to be done.
I found this link:
http://www.drflex.eu/category/livecycle/livecycle-output-es/
which talks about using LiveCycle ES (which is different that LiveCycle Designer) and Google Charts APIs (http://code.google.com/apis/chart/).
This is a sample of using Google Charts API:
The Image Source is:
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World
[img]http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World[/img]
I tried to assign the above link to the PDF Image Field URL Peroperty, it did not work for some reason. I tried to used an absolute link to a Physical Image File, it worked. It looks like this is a limitation in LiveCycle Designer 7.1.
I think the workaround is to call the Google Chart API, retrieve the result as Binary, save the result to a file in the local web folder, and generate the URL to the Image, and assign it to the PDF Image Field URL Properly.
The Question:
========
- How I can use ASP.NET to execute a call to Google Chart API, and save the result image to a file locally ?
- Any other suggestions ?
Tarek.
In otherwords, I need to use an easy method to enable me add charts and graphs to my LiveCycle PDF Forms based on a Data Table or some other data sourse.
I did some search, and found out the Adobe Flex has super charting capabilities but I am not sure if it can be used with Adobe LiveCycle Desinger 7.1.
Any idea on how to add charting to PDF will be appreciated.
Tarek.