printing with a Word object

Hi!! I have a problem with the Word document as an OLE object. I need to know how could I change this Word object dynamically, I mean, I have 4 Word documents and I want to select the Word document (for example document called "One.doc") before the crystal report is called, and then tell to the crystal report that the document I want to report is "One.doc".
I'm using VB.NET.
Thanks for the help.Smile
[500 byte] By [shadow_woman] at [2007-12-16]
# 1
Hello,

Which version of Crystal Reports are you using?

My guess is that this won't be possible for you using the Crystal Reports object model.

One way that you could do it is to setup your OLE Object as a linked OLE Object and then change the physical file before you load the report.

So you would add an OLE Object, choose the create from file option and check the Link box. Then browse to the file, say c:\test\my.doc

Now at runtime all you have to do is copy the doc file you want to show up in the report to the c:\test directory and rename the file my.doc.

Keith - Business Objects

KeithThomson at 2007-9-9 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...

Visual Studio

Site Classified