Change Crystal OLE path?

Reply

Join Date: Sep 2008
Posts: 30
Reputation: Richy321 is an unknown quantity at this point 
Solved Threads: 0
Richy321 Richy321 is offline Offline
Light Poster

Change Crystal OLE path?

 
0
  #1
Jun 26th, 2009
Hi,

I currently have a crystal report (verison 10) with a linked ole object linking to an excel spreadsheet. I need to be able to programmically change the link path at runtime using vb6.
You can do it in crystal by going view -> links ->change source so surely there is a parameter we can pass to the ole object that denotes its source path?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 30
Reputation: Richy321 is an unknown quantity at this point 
Solved Threads: 0
Richy321 Richy321 is offline Offline
Light Poster

Re: Change Crystal OLE path?

 
0
  #2
Jun 29th, 2009
bump?
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 1
Reputation: john_hncma is an unknown quantity at this point 
Solved Threads: 0
john_hncma john_hncma is offline Offline
Newbie Poster

Re: Change Crystal OLE path?

 
0
  #3
Sep 2nd, 2009
Hi
This is exactly what I am trying to do now. I want to pass a variable from the crystal report into the pathname or alternatively link to the excel sheet saved as a BLOB in a database???
any help apreciated
Thanks
john
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 30
Reputation: Richy321 is an unknown quantity at this point 
Solved Threads: 0
Richy321 Richy321 is offline Offline
Light Poster

Re: Change Crystal OLE path?

 
0
  #4
Sep 2nd, 2009
I used an OLE field in the end.

http://devlibrary.businessobjects.co...ramming29.html

The key is the .SetOleLocation member function. This can only be set in the Section_Format or declare WithEvents.

There is a size limit with ole objects of about a page.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC