Using Ms Word OLE in Powerbuilder??I'v recently enherited a PowerBuilder app that strips data out of DB2 and
inserts it into A Word mail/merge document for printing using OLE. It was
built for use with Word 5.0. We've gone to Office 97. It no longer works
(same old story).
Here is the offending code:
ole_document.ActiveDocument.Content.EditGoTo ("Include")
ole_document.ActiveDocument.Content.LINEDOWN(1)
ole_document.ActiveDocument.Content.InsertAfter(i_sAcctDetail)
It stops on the first line and the error message says that the "EditGoTo
property was not found"
Can someone stear ...
Ole Control (Word Document) in a Datawindows
I'm puting a Word Document (Ole Control) in a Header of a datawindows, when
i'm in design mode i see the contents of the document , but when i preview
the datawindow i see a blank document, Why
Thanks in advance
I also will like that when user double click the control, he can modify the
document and let the new document be the new document for other users.
Is possible too, that user can assign a word document that he have write
using word outside the program?
Tanks a lot
"Pere Pie" <perepie@retemail.es> escribi� en el mensaje
news:Qx1$Z0fHCH...
Powerbuilder to MS Word via OLE is slowOur application has used Word through an OLE connection for many years. It
was always sort of slow but recently we upgraded from Word 95 to Word XP and
it got much slower. With Word 95 it took about 15 seconds to connect, load
a template, open a document and populate with data. Now that same process
takes about 40 seconds with Word XP.
A typical user machine is 433mhz with 64 mb RAM. Doubling the RAM gets us
back down to about a 15 second response time. The problem is that we have
800 users and no money in the budget to add RAM to 800 machines.
I am wondering if any of you hav...
Open MS Word Read only in OLE controlHi,
How can I open a word document in OLE control in READ ONLY
mode?. Please give me the syntax of the command to use. Here
is how I open the document. I am able to open the document,
but in Read /Write mode.
IF Len( ole_word.DocFileName ) < 2 OR ole_word.DocFileName
<> ls_LocDocFile THEN
ole_word.Clear()
ole_word.InsertClass( "word.document" )
ole_word.Open( ls_LocDocFile)
END IF
Thanks a lot
Vinod Thomas
V Thomas wrote:
> How can I open a word document in OLE control in READ ONLY
> mode?. Please give me the syntax of the command to use. He...
MS Word OLE Control: How to Insert Input Fields?Help please!
I need to write code for MS Word OLE Control that works like these RTE
functions: InputFieldInsert(), InputFieldChangeData(). How can I do that?
...
Inserting word document in OLE Control on a composite datawindowI have a compsite datawindow from which certain set of data
is displayed. I have a requirement in which I need to
display certain set of instructions (4-5 page of word
document) at the end of data retrieved. I am inserting an
OLE control on the composite datawindow in its summary band
and inserting the word document. Problem is that only first
page of word document can be seen from retrieving the
composite datawindow. Please help.
Thanks.
...
PB9/ OLEI am trying to save a report which comes in datawindow, I have to export
this report into MS word, maintaining the format of the report.
I have tried different approach with not much of a success
I tried basic ole automation , connecting to word and copy the data from
datawindow at run time and paste into word document. but does not maintain
the formatting of report.
Thanks a lot in advance,
Tushar
Hi Tuschar,
We managed to do this by printing to pdf-file and using a pdf to doc
convertor.
Directly from PB to Word was tricky and not so easy to do.
Using:
- Amyuni...
Problem w/ MS Word OLE Control on ActivePrinter()Please help,
I am trying to dynamically change printer using MS Word's OLE object
(function name is ActivePrinter()), and it does not seem to work. Does
anyone have any idea as to how or why that function call fails?
p.s. It returns the default printer when I don't pass in any parameter, but
I can't set another one using the same function.
Thanks
I came up with a workaround by changing the default printer by calling
n_cst_platform.of_printdlg().
BWY wrote:
> Please help,
>
> I am trying to dynamically change printer using MS Word's OLE obj...
Help Needed forUsing Ms Word OLE in Powerbuilder??
I have one report which I wanted to be in Word document. Although it is not
exactly mailmerge, I want to replace few of the fields in the word document
with the database fields.
The problem I am facing is Word says
'Name not found calling external function goto at line ...'
I tried using Word 97 / Word 2000 ( PB version is 6.5)
The code I wrote is
////////////////////////////////////
OLEObject ole_object
ole_object = CREATE OLEObject
li_rtn = ole_object.ConnectToNewObject("word.application.8")
if li_rtn = 0...
Error using SaveAs( ) with OLE control for MS-Word fileWe have an application which inserts an MS-Word file into an OLE control and
then reads the data from the OLE control and stores the data in the
database. The stored data contains both the original data and the OLE
header.
Blob lbl_ole_data
Ole20.InsertFile( as_filename)
lbl_ole_data = Ole20.objectdata
We have a second application which reads the data from the database into an
OLE control and saves the original data to a file.
Blob lbl_ole_data
Ole20.objectdata = lbl_ole_data
Ole20.Activate(InPlace!) ...
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?
...
Datawindow with large binary OLE to MS word interface getting memory AccessViolationExceptionHi,
I have a datawindow that has a large binary OLE object on it
that links to MS word. When the user double clicks the OLE
it brings up MS WORD. The datawindow worked fine in DW.NET
2.0, but after upgrading it now gives an
AccessViolationException (attempted to read or write
protected memory) error. I first notice this error when I
upgraded to build 5063 and it is still a problem with DW.NET
2.0.1 (build 6021). Does anyone have any ideas?
Thanks,
Don
Don Kartchner wrote:
> Hi,
>
> I have a datawindow that has a large binary OLE object on it
> that links to MS ...
PowerBuilder 10.5 OLE Database Blob control and Word 2007 .docx filesI have an OLE column in a Datawindow and was able to open .doc files when
the OLE server app in the OLE Class is defined as Word.Document.12, but I am
not able to open a .docx file. The application starts but with a blank
document.
My environment:
PowerBuilder 10.5.1 build 6684
SQLAnywhere 11 db
MS Office Word 2007
Any ideas/suggestions on how to fix this problem are very much appreciated.
Thanks,
Petra
...