Print Page | Close Window

Code to embedding DOC's dynamically in Crystal Rep

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20996
Printed Date: 25 Apr 2024 at 3:20pm


Topic: Code to embedding DOC's dynamically in Crystal Rep
Posted By: aspfun
Subject: Code to embedding DOC's dynamically in Crystal Rep
Date Posted: 24 Aug 2014 at 2:05am
I was assigned a project which need to do the following jobs:

1) Print cover letter in which display member name and address based on memberID in Member table (Done)

2) Using the same memberID to embed a word doc file. The file name is the same memberID from a file server, eg. 12345.doc (Need help to code???)

3) Export to a file server as pdf file(this should be no problem for me)

Can some experts give me an idea of how to do 2)?

Using sub report or ole object ? How to code?



Replies:
Posted By: hilfy
Date Posted: 02 Sep 2014 at 11:12am
You could try embedding it as an OLE Object. All of the properties will call it a "picture", but you might still be able to build the location by going to "Format Object", selecting the "Picture" tab, and setting the "Image Location" formula to point to your .doc files.

-Dell

-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window