can i use pb's automation server to create an activex/ole/ocx? help me!
Please do not cross-post.
--
<hopethishelps/>
Roy Kiesler [TeamSybase]
MySybase -- http://www.sybase.com/mysybase
"tadsun" <tadsun@163.com> wrote in message
news:UXo0Ru7BCHA.201@forums.sybase.com...
>
>
>
...
MS-Word & Powerpoint automation, using OLE automation [Edit]Hello,
Here is what I need to do, from my Delphi application : starting from a MS-Word document, create a PPT presentation simply made of a series of embedded MS-Word objects. There would be 1 slide for each page of the source document (assuming same page size & orientation on both sides).
This requires to control both a WordApplication and a PowerpointApplication in parallel, and proceed basically as follows :
- in Word, open the source file
- In Powerpoint, create a new presentation
- For each page of the Word doc,
|- in Word, select from start to end of current page, then &quo...
Powerbuilder 8 and using Word OLE BookmarksThis is a multi-part message in MIME format.
------=_NextPart_000_000A_01C2FEAF.A88ED4E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm a bit confussed on this as in another application I did it worked =
great !!, but in another application (both same Powerbuilder and Word =
versions) the code doesn't run ?? Why ??
In one application this works fine:=20
OLE_OBJECT.documents.open("\\Dir\application.doc",0,1)
OLE_OBJECT.application.visible=3Dtrue
OLE_OBJECT.ActiveDocumentBookmarks.Item("Today"...
problems using OLE Automation and ActiveX in PB 6We are writing a PowerBuilder application that can be used as OLE Runtime
Automation Server.
We are using PowerBuilder 6.0 beta 3.
We've built a 32-bit .pbd and made it a DLL ( OLE server )
We've used PowerBuilder sample program PBGENREG.PBL to generate .reg and
.tlb (type library) files.
We've installed PowerBuilder deployment on Windows NT 4.0 server and tried
to register
it with the system using "regsvr32.exe" program.
We are getting an eror message:
"C:\MyOLEServer.dll was loaded, but the DllRegisterServer entry point was
not found.
DllRegisterS...
using Ole with MS Word 8 and PB6.5I am trying to replace a string with another string using Ole with MS Word 8
and PB6.5
ex:
Dear <<name>>
blah, blah, blah...
I have not been able to find the right function.
Can anyone help?
James Barletta
jbi@xoommail.com
You could use the Mail Merge feature of Word and OLE Automation. I have
posted an example script that does the work in the general or powerscript
forum twice within the last month.
James Barletta wrote in message ...
>I am trying to replace a string with another string using Ole with MS Word
8
>and PB6.5
>
>ex:
>...
WORD OLE automation
The following code works perfectly with WORD6/Windows95/PB6, but does
not work for WORD 97/NT.
OLEObject lole_word
string ls_mytext = "Trial text"
li_rc = lole_word = CREATE OLEObject
li_rc = lole_word.ConnectToNewObject("word.basic") // in
NT WORD is opened INVISIBLY
// It appears as a process in the Task Manager
// li_rc = 0
li_rc = lole_word.FileNew("normal",
0) // Returns li_rc = NULL
li_rc =
lole_word.Insert(ls_mytext)
// Not recognised by WORD97
li_rc =
...
OLE call to Word 8 (OFFICE 97) using BLOB failed.Hi,
Need Help regrading OLE connection to Word 8 via Blob column in datawindow.
Following is the code, I am using to create a Word 8 template and store it
in a blob column in datawindow dw_1.
/*********************/
/* OLE PB Script */
/*********************/
Any olestatus
Long returnval, count
String filename, LS_text[], ls_HoldBmrk[], ls_docid, ls_docpath,
ls_bookmark
OLEObject ole_importbookmark
Integer liReturn
blob lblob_letter
w_main.SetMicroHelp("Transferring bookmarks to document...")
SetPointer(HourGlass!)
gi_subpalletopenind[8,2] = 0
i_modifiedrow ...
how can i use powerbuilder to develop an activex/ole/ocx? help me please!!!
Please do not cross-post.
--
<hopethishelps/>
Roy Kiesler [TeamSybase]
MySybase -- http://www.sybase.com/mysybase
"tadsun" <tadsun@163.com> wrote in message
news:jIQ8Mt7BCHA.200@forums.sybase.com...
>
>
>
...
Bugs and Problems when using ActiveX ole controls in PB 6/7/8Hello, fellows,
I am trying using ActiveX controls in PB6.5, but when I want to get the
properties or call the methods of the activex control, I cannot get the
correct string when working in Chinese envirnment. The data type of the
properties and the methods of the activex control is string. I have no such
problem when the string is english. I test this in PB7 and PB8 also, I have
the same problem. I know that the ActiveX control is created by VC++ and in
VC++, the data type of all these properties and method of the control is
"BSTR". Infact, I think, every ActiveX c...
WordPerfect: OLE automation through OLE controlOK, I connected to WordPerfect from PB6.5 by using OLEObject like:
OLEObject ole_obj
ole_obj= CREATE OLEobject
li_rc=ole_obj.ConnectToNewObject ("WordPerfect.PerfectScript")
........
Now it accepts automation commands.
But my goal is to start OLE automation through Object property of OLE
control.
Something like:
ole_1.Activate(Offsite!)
ole_obj=ole_1.Object.WordPerfect.PerfectScript
.....
And that does not work though it does with Word. Does somebody know if it is
possible at all to make OLE automation through OLE control and how to do
that?
Thanks
...
ole and Word 8
I have a PB app that use ole and Word. We're migrating to Word 8/Word97 and
the change from wordbasic to VBA is a little confusing.
I have code in PB wordbasic that looks like.
ole_1.Object.application.wordbasic.EditReplace("APPROVED
BY~tN/A",s_text,0,0,0,0,0,FALSE,TRUE,FALSE,0,0)
Has anyone figured out how to do a EditReplace in VBA in Word 97 ???
Charles Stull
...
Word OLE automationWould like to open word document using OLE after populating word using OLE
Automation. The document should open up in print preview mode,and then using
either VBA, or other code print or close from print preview. I want to
supress all menus and commandbars from the word document.
What code can i run from PB script to open in print preview and turn off
menus and command bars, and put in two of my own command buttons.
...
Word OLE automationI am about to embark on a PB 5.0 project that will require dynamic creation
of documents for use with Word 97's mail merge capability.
Being that this is my first time using OLE, as well as my first time
programming Word, could anybody point me in the right direction (books,
articles, web sites, etc.) to get me started? I've experimented a little
with what I could find on Microsoft's and Sybase's sites, but I am looking
for something more comprehensive.
===============
Daniel Buki
Software Developer
Butte County (CA) Migrant Education
cerkit@ncal.net
In article...
Printing Word document using OLE or using ShellExecute API callOriginally I was only saving a DW or DS to PDF by doing the following:
1. Check if PDFWriter is available.
2. Change the default printer to PDFWriter and store the original default
printer.
3. Set the PDF saveas path\filename in registry to avoid PDF SaveAs dialog
4. Print DW or DS
5. Clear out PDF saveas path\filename in registry
6. Restore default printer
The above works great. Now I need to save Word documents in PDF format.
Here's my dilema:
===================
OPTION 1 - OLE Control
===================
If I use OLE, everytime I open a document I get a new instance of ...
Does anyone use OLE container in Datawindow as OLE (Excel Chart/Worksheet/Microsoft Graph) presentation style or OLE object in Datawindow? Please Help.Blank
Hello folks,
How can I use an OLE container in Datawindows?
The situation as follows:
I have a datawindow with OLE (Excel Chart/Worksheet/Microsoft Graph)
presentation style or grid datawindow with OLE object (Excel
Chart/Worksheet/Microsoft Graph) in detail band.
I have the next result set of datawindow (SQL select/ SP / External)
fields: anytext, anynumeric
values: first, 1
first, 2
first, 3
second, 1
second, 2
second, 3
I mapped OLE data as follows
Group by: anytext
Target Data: anytext
...
Does anyone use OLE container in Datawindow as OLE (Excel Chart/Worksheet/Microsoft Graph) presentation style or OLE object in Datawindow? Please Help.Blank
Hello folks,
How can I use an OLE container in Datawindows?
The situation as follows:
I have a datawindow with OLE (Excel Chart/Worksheet/Microsoft Graph)
presentation style or grid datawindow with OLE object (Excel
Chart/Worksheet/Microsoft Graph) in detail band.
I have the next result set of datawindow (SQL select/ SP / External)
fields: anytext, anynumeric
values: first, 1
first, 2
first, 3
second, 1
second, 2
second, 3
I mapped OLE data as follows
Group by: anytext
Target Data: anytext
...
Does anyone use OLE container in Datawindow as OLE (Excel Chart/Worksheet/Microsoft Graph) presentation style or OLE object in Datawindow? Please Help.Blank
Hello folks,
How can I use an OLE container in Datawindows?
The situation as follows:
I have a datawindow with OLE (Excel Chart/Worksheet/Microsoft Graph)
presentation style or grid datawindow with OLE object (Excel
Chart/Worksheet/Microsoft Graph) in detail band.
I have the next result set of datawindow (SQL select/ SP / External)
fields: anytext, anynumeric
values: first, 1
first, 2
first, 3
second, 1
second, 2
second, 3
I mapped OLE data as follows
Group by: anytext
Target Data: anytext
...
Does anyone use OLE container in Datawindow as OLE (Excel Chart/Worksheet/Microsoft Graph) presentation style or OLE object in Datawindow? Please Help.Blank
Hello folks,
How can I use an OLE container in Datawindows?
The situation as follows:
I have a datawindow with OLE (Excel Chart/Worksheet/Microsoft Graph)
presentation style or grid datawindow with OLE object (Excel
Chart/Worksheet/Microsoft Graph) in detail band.
I have the next result set of datawindow (SQL select/ SP / External)
fields: anytext, anynumeric
values: first, 1
first, 2
first, 3
second, 1
second, 2
second, 3
I mapped OLE data as follows
Group by: anytext
Target Data: anytext
...
OLE-Word Header/FooterHi all
I've searched the sites but haven't found info on this so I apologize if
this a FAQ; We're using OLE to create/modify Word documents and saving them
as a Blob in our DB; problem is that Header/Footer information doesn't seem
to want to save in any consistent manner; sometimes it will, sometimes it
won't.
We use a mail-merge with a blank template to create the document.
TIA
Philippe
I'm having the same problem. Have you had any success finding a resolution?
--
John De Lello
DelWare Software Solutions, LLC
Programming solutions for...
OLE: How to save to a given format in excel using OLEI could not figure out how to translate this Macro VB script
from excel to PB OLE. Any suggestions?
Thanks
Sub Macro1()
ActiveWorkbook.SaveAs Filename:= _
"C:\test1.xls", FileFormat:= xlNormal, Password:="",
WriteResPassword:="", ReadOnlyRecommended:=False ,
CreateBackup:=False
End Sub
...
Using OLE with Word 97I would like to open a blank word document using an OLE container. The
document is being opened off site. Then I want to construct some text
(based on previous user selections) and insert it into the document. We
use PB 6.5
My code is
ole_1.object.application.wordbasic.editgoto ("begin")
ole_1.object.application.worbdasic.insert ("This is a very small test")
The first line works (at least it doesn't blow up). The second line
blows up after I close Word. Does anyone know the real syntax.
On Tue, 16 Feb 1999 11:43:45 -0500,
in powersoft.public.power...
Using GetFullState with OLE AutomationHas anyone tried using GetFullState() in PB OLE automation? I crash
consistently when the client attempts to call DisconnectObject. If I take
the GetFullState() call out of the server code everything works fine. I also
had problems using this in DPB but I was able to work around those problems.
Has anyone tried using GetFullState/SetFullState in PB 6.0 at all? They
would be great functions if they worked correctly. I noticed they dropped
the functions from the help file in the final release.
Sean Flynn
OpenFrame Development
Riverton Software
...
ActiveX, OLE Automation, OLEStorage1.) Does anyone know how to create an ActiveX control in PB 6.0 or 6.5?
2.) I have utilized OLE automation to use some functionality of Excel and
Word. Unfortunately, whenever I use the ConnectToNewObject() or
ConnectToObject() functions of an OLEObject variable, either the entire
application of Word or Excel application is opened behind the scenes. This
is the case even though I only want to use a single function within these
applications. It seems like a waste to load the entire application to get
just at simple functionality. Is it possible to open lightweight component
applicatio...
Word 6 OLE automationHi,
I'm using OLE automation with Word 6 to perform a mail merge. Most of the
methods work OK (FileOpen, FilePrint etc.) but some of them don't
(FileClose).
PB says : Error calling external object function blablabla ...
The function's name is OK, and the parameters also.
I've debugged the externalexception event, and the OLE server tells me that
I've tried to handle an element like a function when it isn't.
The bizarre thing is that, calling a macro with that instruction (FileClose)
works.
Perhaps the solution is putting all the code in the macro ?
...