Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Powerbuiler OLE

$
0
0

Yes, it works for me for Word 2007.

I have a simple OLE control on a window and this script:

 

string s="d:\Dok1.docx"

 

ole_1.displayname=s

ole_1.LinkTo(s)

ole_1.activate(offsite!)

ole_1.object.saveas("d:\Dok2.docx")

 

The SaveAs2 method is new since Word 2010. So you should use this instead of SaveAs.

 

The use of ole_1.object.Application.ActiveDocument is not neccessary because your OLE control already contains the document.


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>