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...
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...
>
>
>
...
OLE automation problems with PB 6.5.1Since I installed PB 6.5.1 I have problems with OLE automation:
I have an OLE control object called iuo_olectrl.
I set the blob with
iuo_olectrl.ObjectData = bl_Oledata
(The blob can be a MS Word or Excel or Wordperfect document.)
and start the OLE application with
iuo_olectrl.DisplayType = DisplayAsIcon!
iuo_olectrl.Activate (OffSite!)
Everything worked fine with PB 6.5 EBF 595 and earlier EBFs and
with PB 5.0.03
Since I installed PB 6.5.1. (version 620) the activate function
returns with the error code -9.
It only works if the application (Word or Excel) is a...
How to use method activeX control in PB (Newbie using ActiveX)Hi all,
This is the first time I'm using activeX in my application, does anyone can
helpme with these problem.
How to use method in activeX because I've got example that come with the ocx
file only with VB6 and I don't know how to used it with PB7.
------------
Call ActiveX_name.CopyTable(filename As String,Creator As
String,SDDI_plugin_name As String, CreateFlag As Integer, VersionMajor As
Integer, VersionMinor As Integer)
------------
THX
--
ebr
...
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...
>
>
>
...
Help using OLE from a PB executable (PB 6.5)I copied this from a suggestion found in this NG on how to convert
datawindow to Excel - by saving to HTML (to get computed fields etc), then
converting to Excel format using OLE.
When I run from within PB, it works fine - the file "docname"
is in Excel format.
But when I build the application and run from an EXE, the Excel logic
doesn't seem to do anything - the
resulting file still looks in HTML format.
I am wondering if I need to add something to the Resource file to get this
OLE to work from executable?
The code is as follows (where "ds" is a DataS...
PB Ole Automation ProblemHi,
I am trying to access an user object through Ole automation. I can't
access an instance variable of the user object, getting this error:
"Cannot convert oleobject in Any variable to transaction at line ..."
The user object has a function, of_connect(), that creates a transaction
object and populate it. The transaction object is an instance variable.
The client application has this code to access the user object through
ole automation:
OleObject u_tr
integer li_status
u_tr = CREATE OLEObject
li_status = u_tr.ConnectToNewObject ("ConnectTran")
IF...
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...
ActiveX Controls, 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...
Welcome to the OLE-OCX-ACTIVEX newsgroupWelcome to the OLE-OCX-ACTIVEX newsgroup. This is a forum for discussion
on topics related to the usage of OLE, OCX and ACTIVEX with PowerBuilder.
Feel free to post questions about the product, concerns about your
development needs for enhancements and any other feedback. All posted
messages will be in the public domain and may be republished on Powersoft's
InfoBase CD ROM as well as on our WebSite in order to provide information
that is extremely valuable to other developers.
This is NOT Powersoft Technical Support and it is not the purpose of this
newsgroup service to allo...
OLE automation to Excel using PBI'm attempting to do a SaveAs to a different filetype by using OLE
automation to Excel. The test code I am using is below:
oleobject oo_test
integer li_rc
string ls_format
oo_test = Create OleObject
li_rc = oo_test.ConnectToObject( &
"c:\van\expense.xls")
IF li_rc = 0 THEN
oo_test.application.workbooks(1).&
worksheets(1).cells(1,1).value = 14
//oo_test.application.workbooks(1).save()
oo_test.application.workbooks(1).SaveAs ("c:\van\van.txt", "xlText")
Else
Messagebox ("Error", li_rc)
END IF
...
OLE automation problem (PB 5.0)Hi All,
I have created an automation server from a nvo and calling its function from
VB. When i call a function which has some arguments passed by reference, i
get an error saying that "Error: bad argument list for function/event :
functionname". I get this error even if i call the function from PB (using
automation method).
When i replace the reference arguments and use Instance variables to pass
back the results, i dont get an error.
Is it a PB bug? If not how shall i pass a reference argument?
Thanks,
Deepak.
...
PB 6.5 with OLE, insertrow problemsHas any had this problem?
I am running PB 6.5 and we converted a part of our framework and application
so it can be executed via an OLE interface.
When we execute the program via OLE, everything looks OK, except in the
framework script an 'dw_xxx.insertrow(0)' statement fails to insert a row.
I checked return code and it returns a zero(0), and there is no rows in the
datawindow.
Any ideas?
--
Paul K. Watje
AssetWorks, Inc.
...
PB 6 OLE object as IN-Process Server ProblemHi !
I'm create IN-Process OLE Server from PB NVO with implementation of RDBMS
logic.
After compiling by PB5.0.03 I Can call this OLE Server from VB5, VBA from
Office97 and Delphi3 code and explore this object by MS OLE Viewer 2.10.
It's work fine.
But after compiling same object from PB6 RC3 all of this programs call
DrWatson (under NT) or show GPF info under Win95.
What's happen?
PS: DCOM Config utility show my new OLE Server (after compiling by PB6) as
Remote Server
Case sensitive. Make sure all your methods are lower case.
--
Thanks
Dean Jones, CPD Profes...