I am writing a custom C# application that utilizes ApplicationXtender Web Services. The end result that I'm pursuing is a .pdf document comprised of a Crystal Report generated document which is then merged with a series of images from AX. I've been able to achieve this by:
- Generating the Crystal Report and exporting to .pdf
- Importing the .pdf as a new document into AppXtender
- Querying and Exporting the related documents out of AppXtender
- Looping through the exported images and appending them as pages to the previously-imported Crystal .pdf
- Finally exporting the merged document back out again
The above steps are functional, but it seems to me that this must be a terribly inefficient way of doing things. Is there a way to accomplish the same thing without all of the extra file I/O of exporting the images and then importing them back in? Can I somehow just get the document references and merge them within AX and only do a single export?
Any advice would be appreciated!
Regards,
Scott