I have following problem. I want only to write some data read from DB in PB
to a Word docment and then to print it out. I am using OLE - everything is
OK - I am connected to MS Word, the file is opened, I can even print it
...., but I can't manage to write on a bookmark. I have already tried
following, but nothing works:
= "test value"
Since I know that there can be troubles with bookmarks (defined x
notdefined) in Word I thought that maybe it could be better to use the
boo...PB/MS Word OLE resource
Can anyone point me to a solid PB 8/MS Word OLE guide? covering things
like Header/footer manipulation, mail-merge functionality, etc.?
<< Can anyone point me to a solid PB 8/MS Word OLE guide? covering
like Header/footer manipulation, mail-merge functionality, etc.?>>
I can only offer you my experience. I do very advanced Word manipulation
programatically, including all of the above and much more. Word
mail-merges are a real mess and need much code to make them work properly
if you have:
1) Mail Merge Fields in Headers/...PB OLE MS-Word Insert/Invoegen
I have to put information from a dw to bookmarks in a MS-Worddoc.
For english MS-Word I used ole_obj.FileOpen(), ole_obj.EditGoto() and
Now customer has dutch MS-Word. I changed to ole_obj.BestandOpenen(),
ole_obj.BewerkenGaNaar and ole_obj.Invoegen(). All works fine, except
Remark : FileOpen and EditGoto are macros, Insert is a statement.
Does this seem like a bug, does someone knows the answer?
...Ole connectivity commands from PB to MS-Word.
I am trying to send PB-Reports to MS-Word within ole automation.
What's the command for opening a document from Pb when using the
Can anybody recommend any book or send pieces of code showing the
command he use?
Conceptware Consult GmbH
Goto http://www.ctpartners.com/asp/tips.asp, register (free) and do a search in
the download section for "OLE" - there is a great document there with numerous
On Tue, 08 Sep 1998 04:59:53 -0400,
Mar...Jaguar PB Object with OLE to MS Word/Excel
Hello people !
can anybody help me how to set the user under which
an oleObject like "Word.Application" is created within a
PB Jaguar Component ?
I am using Jaguar 3.6.1 and Office 2000
It is necessary for me to use a specific user because most of the settings
in office 2000 are user specific (like defaultfilepath)
this is a part of the source Code:
string ls_parm, ls_servername, ls_username, ls_password, ls_dir
lole_word = Create OLEOBJECT
ll_ret = lole_word.ConnectToNewObject("Excel.Application")
if ll_ret < ...PB 10 (6064) OLE MS-Word Object
I added an OLE Word Document Object to a tab page. Here
is the script I use in PB:
li_result = parent.ole_letter.InsertClass ("Word.Document")
li_result = parent.ole_letter.LinkTo (ls_file)
li_result = parent.ole_letter.Activate (offsite!)
The document opens fine but:
1. How can I get the document to opened maximized?
2. The history of most recent files opened is getting wiped
3. PB crashes when trying to open the tab object that
the OLE. After I export and import the tab object the
seems to go away. Then after adding an OLE to another
...Word ole: How to close MS word
I have ole control on the window and inset file using
When I close the window I still see the word running in task
manager. How do I close Word?
How about looking at the Quit method?
> I have ole control on the window and inset file using
> When I close the window I still see the word running in task
> manager. How do I close Word?
...PB 9.0.1 App Error R0039 during OLE MS WORD CheckSpelling()
I've successfully added MS Word spellchecking to my application. It
works exactly as we need it to...
.... except with the following problem!
When a user starts spellchecking (in that, I mean MS Word's spell
check dialog box is open) and the user leaves the application, after
about 20 minutes, the app spits out the following error msg:
Error Number 39
Error Text = Error accessing external object property checkspelling at
line 32 in function blah() of object n_blah.
However, if the user mimics the identical process, but does not stop
until the spell check is over, it ...can i use pb's automation server to create an activex/ole/ocx? help me!
Please do not cross-post.
Roy Kiesler [TeamSybase]
MySybase -- http://www.sybase.com/mysybase
"tadsun" <firstname.lastname@example.org> wrote in message
...PB to create OLE and OLE with PD
It works great to reuse NVO's from Powerbuilder within PD.
Works great to create instances of Jaguar COM proxies too!
comp = CreateObject("SVU.SVULogin");
Jaguar Product Team
Dominik Baer wrote:
> It works great to reuse NVO's from Powerbuilder within PD.
I would like to open word, excel files within a powerbuilder
application in read-only mode. And I do not want the menu and toolbar of the
word, excel application to be displayed. Is there a way to hide the menu and
Any help will be greatly appreciated.
Check for the "DsoFramer" control. (Microsoft Developer Support Office
Framer Control 1.2 Sample (MSDN - KB311765))
"MAthi" <email@example.com> �������/�������� � �������� ���������:
> ...PB and Word OLE
FWIW - Here is some OLE automation stuff for Word 97. I will be updating
this shortly, but another member had asked about this as well.
** Apply Microsoft Word SR-1 for Office 97 ** Seems to speed up OLE.
Word 97 OLE Automation with PowerBuilder 5.x +
There are several examples of Word OLE with
Word 95, but few for Word 97. Word 97 uses
VB for Applications(VBA) as it's scripting
language and therefore makes the previous
examples "legacy." Describe below are some common OLE method you may
want to call to communicate with Word 97.
The best resources for more i...PB to Word, OLE
I connect to Word 97 with PB7. That works fine.
Now I want to save the word document and send the filename from word to PB.
How have I access to my current PowerBuilder application? How can I call a
function from PB in Word?
I tried it in Word with GetObject fo getting my Powerbuilder Application,
but this didn't work....
...OLE and MS Word
I'm looking for a simple application that creates a Word document (*.doc)
and writes some text there without opening Word and then closes the
connection to that OLE object...
Thanks in advance...
Have you tried looking at
Just a hint. You can search the Sybase tech docs from
Terry [TeamSybase] and Sequel the techno-kitten
On 3 Feb 2004 02:40:13 -0800, "Piotr Nadolny" <firstname.lastname@example.org> wrote:
>I'm looking for a simple application that creates ...