WDK and MS-Word through OLE #2Hi,
I am doing OLE to MS-Word to generate some letters. WDK gives an error
message 'File Not found' when executing 'LinkTo()' function. But the
file does exists in the specified path. Could anybody suggest a work
around?
Here is the code:
ls_doc_name = "c:\charts\cse0007.doc"
// check whether the document is existing
lb_fileexists = FileExists(ls_doc_name)
CHOOSE CASE lb_fileexists
CASE FALSE
MessageBox("Error", ls_doc_name + " Not found",StopSign!)
Return FALSE
END CHOOSE
//ole_docword is an OLE control with Object Type ...
Word ole: How to close MS wordI have ole control on the window and inset file using
Ole_control.InsertFile(file_name)
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?
Katarina wrote:
> I have ole control on the window and inset file using
> Ole_control.InsertFile(file_name)
>
> When I close the window I still see the word running in task
> manager. How do I close Word?
...
OLE and MS WordHello,
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
http://www.sybase.com/detail?id=47980
Just a hint. You can search the Sybase tech docs from
http://www.sybase.com/support/techdocs
Good luck,
Terry [TeamSybase] and Sequel the techno-kitten
On 3 Feb 2004 02:40:13 -0800, "Piotr Nadolny" <pnad@o2.pl> wrote:
>I'm looking for a simple application that creates ...
OLE with MS WordHello all,
Where can I find a list of Active X commands to control MS word.
I'm trying to do: ole_1.Object.SaveAs("c:\test.doc") but "Save As HTML"
instead.
I would like to find a list of all the commands to carry out various
functions.
Thanks for reading!
Rick
This is all wriiten down in the Office developers books. Best place to
search on the internet is http://msdn.microsoft.com
HTH
--
- Eric Aling [TeamSybase], Avalix Information Systems, The Netherlands
Eric's Home & PB Site @ http://www.knoware.nl/users/cypr115
...
OLE (MS-Word) ControlHi everybody! I hope I say this all correctly, cause I have only about 6
months experience with PowerBuilder.
I'm using version 6.5.1 of PowerBuilder...
I have a datawindow where I have placed an OLE control (an MS-Word doc built
in Office 97) in the detail band of the datawindow. The Word document is
"linked" not "imbeded". The idea is to merge some addresses (Sybase
columns) with the Word doc and print it.
All of that works great, however once I print the datawindow (using
PFC_PRINT), my mouse will appear normal, but clicking on anything, anywhere
in...
MS Word OLE ProblemI am trying to get page count from a Word document. I have a macro that
will get the 'accurate' page count and I want it to return the page count to
where I called it in my Powerbuilder application. The following
powerbuilder function is what I am using to call the Word macro:
//************************************************************************
long l_pages
OLEObject ole_word
ole_word = CREATE oleobject
l_pages = 0
IF ole_word.ConnectToNewObject("word.application.9") = 0 THEN
ole_word.Visible=TRUE
ole_word.Documents.open("C:\\Temp\test....
OLE to MS Word for SpellcheckingI'm starting an OLE instance of Word (version 10) to take advantage of it's
spell checking feature. This works fine except for when I ADD a new
document to Word. The ADD function wants to be visible by default. We
don't want the user to see anything except the Checkspelling dialog if it
finds and word in question. I've searched around and found that there are
some parameters for the ADD statement. In fact, the fourth paramater is the
visibility value. I've been trying various combinations of passing
parameters or a parameter string through my OLE object to Word...
OLE (MS-Word) ControlHi everybody! I hope I say this all correctly, cause I have only about 6
months experience with PowerBuilder.
I'm using version 6.5.1 of PowerBuilder...
I have a datawindow where I have placed an OLE control (an MS-Word doc built
in Office 97) in the detail band of the datawindow. The Word document is
"linked" not "imbeded". The idea is to merge some addresses (Sybase
columns) with the Word doc and print it.
All of that works great, however once I print the datawindow (using
PFC_PRINT), my mouse will appear normal, but clicking on anything, anywhere
in...
MS word document as an OLEI am using PB 7.02 Build 8046 and Oracle 8i.
I want to have MS Word document as an OLE object in DW.I want to save it
from MS word back to the DW and ultimately to the database.
Which datatype should I use in my table for that ?
I tried to create a table with clob datatype column for that,but PB wants
longraw datatype column. Will I be able to update Word document contents in
that column if it is of Longraw datatype.
Can anyone help me how to update in that case?
Thanks,
Namita
Having reached this far, why dont you try and see what happens and let us
know the result. I...
PBHelo,
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:
ole_word.object.Application.ActiveDocument.Bookmarks("testbook").Range.Text
= "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...
OLE, MS Word, PBI want to use OLE control to display an existing MS word document inside a
powerbuilder response window. I used ole_1.InsertFile(filename) and
displayasactivexdocument!, I can see the document, but the word's toolbar,
menu, status bar all being displayed. How do I hide them but still have
scrollbars? If I define as displayascontent!, the document has very small
font, no scrollbars, and it is not readable. Please advice how to do this.
I do not need to edit nor save the document.
Dear "Joy"!
There is some way to hide all the commandbars in word ( when ole-c...
OLE --> MS Word questionHi,
We have a mail merge feature that we would like to improve so it can
do multiple merges to the client's printer during after hours. However
I have 2 problems. Our merges can range from several to several
thousand records. The larger the merge the longer it takes for MS Word
to build the merge and then spool it to the printer, before it is free
to the next one. Since this needs to run unattended I believe I need
to figure out...
A) how to tell when MS Word has finished spooling and is free to begin
the next merge and...
B) how to make my PB code wait for the condition to ha...
Help required with OLE to MS WordI'm having difficulty doing a ConnectToNewObject ( "word.application.8" ) to
MS Word. The function is returning -3 which according to the PB Help file
means "Object could not be created". This works fine on one machine yet on
another I get the error. I'm using the same version of MS Word on both
machines (MS Word 97 version SR2). Can someone please advise why I'm getting
this error or why the "object could not be created"?
Thanks,
LM
...
Using OLE to open MS WordI am using Powerbuilder 6.5.1 using OLE to open MS Word from an application
but it does not appear to be working. Can anyone help?
The user has WIndows 98 and using MS Word 2000. This was working on a
previous installation of MS Word but has now installed 2000 and no longer
works.
Regards
David Price
Technical Support
ABI Building Data Ltd
www.abibuildingdata.com
DDI: 0151 353 3506
FAX: 0151 353 3505
Word marks a document as "dirty" when the user makes any changes. It also
has exclusive access to "dirty" documents, and shared access to "clea...