Powerbuilder to MS Word via OLE is slow
Our 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...can powerbuilder ole 2.0 with MS word possibly suck as bad as it seems to?
i've been trying to support what should ostensibly be a very simple
procedure using ole automation with ms word 6.0 as the server. as far as
i can tell, unless i'm really crazy, the same line(s) of code produce
different results, randomly. moreover, pb 5.0 doesn't seem to support
the majority of wordbasic's functionality due to its "function" format
as opposed to wordbasic's dot format, i.e. editgoto() vs.
editbookmark.Name = "schmoe", .SortBy = 0, .Goto Insert "Joe".
does anyone know whether or not pb 5.0 (enterprise) has a crappy ole...Ole Word and Powerbuilder
Please help if someone knows how to convert Visual Basic commands to
Powerbuilder. I create bookmarks on the fly and populate them with descriptions.
Some descriptions I have to insert with tabbing or indentions. I need correct
syntax for Powerbuilder. What I used is not working.
iole_object.Selection.Font.Underline = False
iole_object.Selection.Font.Bold = False
These commands are fine. I have no problems.
Powerbuilder doesn't accept commands like :
1) iole_object.Selection.Paragraph.TabIndent or
iole_object.Se...OLE From Word To PowerBuilder
I have been having a problem, I have a PB App that uses Word to open
documents stored in a database. When a document is open, a Word macro is
executed that searches the letter for a place where there needs to be a
signature. If there is a signture needed, it communticates back to
PowerBuilder that the current user signature is needed. It works great
with DDE, but I run into a problem with OLE. How do cummunicate with a
PowerBuilder Appilcation that is already running? As it is right now, I
have to build a runtime DLL, or use the "PowerBuilder.Application" an...Own Help in Powerbuilder Help
How can I get my Own Help into PB12 help?
In PB 10.5 I put this into pbhelp105.cnt. But in PB12 there isn't a CNT
in the Folder .../help.
I found only HxK or HxC in the help folder.
I have my own help instruction for Programmer. I want to include this in
Have anyone a idea.
Actually what you are supposed to do is add this line to the [PB]
section of pb.ini:
The .cnt file is a type of index file that is generated by the help
compiler. Copy your .hlp file into the ...\PowerBuilder...Powerbuilder & MS Word
Could anybody suggest a good reference book for PB OLE with MS WORD?
I've never discovered one.
However, all of the MS Word functions are documented in Word itself. From
the Word main menu, choose Tools .. Macro .. Visual Basic Editor. Then,
from the VB Editor, View .. Object Browser.
All of the classes and methods are there, along with the values of constants
that you'll need - but all of the examples in the help are, of course, in
VB. It is definately possible to translate to PB, but it takes a little
If you have a specific question about how to do...URGENT ! POWERBUILDER + WORD + OLE
I need to change, from my PowerBuilder application, the print
specification of a Word Document before its printing (which paper to use,
scale, where to find the paper in the printer, ...)
Is it possible with OLE or DDE ?
How to do it ?
Thanks for all !!!
Use INI file settings, i.e. specify 'tray' and 'paper type' to use.
Note: It will be hardware dependant
> Hello all,
> I need to change, from my PowerBuilder application, the print
> specification of a Word Document before its printing (which paper to use,
>...I need help with PowerBuilder 7..
Please, can anyone teach me the basics of this development program.
I cant seem to find the perfect book to begin with my PowerBuilder lessons.
Thank you and Merry Christmas
On 16 Dec 2003 01:19:43 -0800, "Tristan Nuique" <email@example.com>
>Please, can anyone teach me the basics of this development program.
>I cant seem to find the perfect book to begin with my PowerBuilder lessons.
>Thank you and Merry Christmas
The Tutoarial and the User's Guide are a good start
http://sybooks.sybase.com/onlin...PowerBuilder and MS Word Mailmerge
Since Office 2003 and Office XP I made mail mergue using the MSD of MS Word
but with these new versions of office all that code does not work now.
Does anyone know how to perform MailMerge with these new word versions?
Thank yu in avance
first you have to prepare a csv datasource for mail merge operation. to
create a datasource take a look at the following snippet:
string ls_sql, ls_presentation, ls_syntax, ls_err, ls_datasource_filenm
// replace ? of as_sql with value of criteria
if as_sql <> "" then as_sql = of...Word Basic and Powerbuilder. HELP!!!
I have the need to do some Word Basic in Powerbuilder but am having
difficulty in finding documentation on how to convert Visual Basic to
powerbuilder where MS word 8 is concerned.
I created the following macro
' sig Macro
' Macro recorded 29/05/99 by peter
.Text = "signature"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchW...Powerbuilder 8 and MS Word
I want to use word in PowerBuilder's application wich open a
Word's file and put in some data coming from ASA (for
For example, the word's file must containing
"Dear Client Mister XXX, etc ... and your Contract Number is
where XXX and YYY are extracting from ASA.
This file must be opened in Powerbuilder's application and
saving after in Database.
How is it possible to do this ?
Thanks for your help.
you should be able to start an ole connection to the msword
http://sybooks.sybase.com/onlinebooks...Powerbuilder and MS Word 2000
I am currently experiencing two problems with PowerBuilder 7.0 (Build
6012) and Microsoft word 2000. I am supposed to print a 1 page Word
document before the user prints any report. Please see the code that
follows this message. This code was working fine with MS Word �97.
After installing Word 2000, I have come across two problems. The first
one occurs where I open the file and printing that file. (
io_reportdoc.documents.open(ls_filename), io_reportdoc.printout()) It
takes way too long to open and printing. I would like to minimize the
time. The second problem is th...PowerBuilder For Japanese Workstations
I need to create deployment kits for 6.5 and 7.0.1 for Japanese
workstations. How exactly would I go about this? I know there is a Japanese
version of the PB, but where is it? Is it on my CD's or do I need to contact
Thanks in advance,
Chris Koerner <firstname.lastname@example.org> wrote in message
> I need to create deployment kits for 6.5 and 7.0.1 for Japanese
> workstations. How exactly would I go about this? I know there is a
> version of the PB, but where is it? Is it on my ...PowerBuilder 10.2 with Word OLE
I am having a crazy hard time trying to figure out what is
wrong with this PowerBuilder interaction with Microsoft Word
2003. After upgrading from Windows 2000 and Office 2000 to
Windows XP and Office 2003, document corruption seems to
occur (4 bytes of garbage scattered throughout the document
file). Both methods of accessing the OLE/Word DOM are being
used. One with the ActiveX control on a form and the other
using the CREATE OLEObject. Word is being used to view,
edit, print, find and replace text, and render PDF
documents; no mail merges or nothing complicated like that.
...PowerBuilder 5 and Word 2000 with OLE
I'm trying to insert an OLE control into a window. If I select 'Microsoft
Word Document' in the 'Insert Object Window' and try to insert the OLE
Object into the window PowerBuilder crashes.
I using Powerbulder version 5.0.4 and running Windows NT and Office 2000
Actually, I have the same problem and I've observed that there is no such
problem on "fresh" computers - with Windows and Office only.
After you install another applications the Word's OLE object stops working
properly with PB. I think that ...