Powerbuilder Error Calling External Object Function Run
Contents |
links to the respective forums on SCN, or you can go powerbuilder application execution error (r0035) to SCN and search for your product in the search powerbuilder error 35 box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > error calling external object function opendatasource General Discussion > "Error calling external object function..." Error calling external object function... 7 posts in General Discussion . Last posting was on 2002-01-30 powerbuilder application execution error (r0039) 01:21:11.0Z Jerry Posted on 2002-01-29 23:08:40.0Z Newsgroups: sybase.public.powerbuilder.generalFrom: "Jerry"
Powerbuilder Application Execution Error R0002
Word to create some cover letters that has been working fine. The program recently began crashing with the error message: PowerBuilder Application Execution Error (R0035) Application terminated. Error: Error calling external object function open at line 302 in function wf_run_qpr of object w_main_frame. The code is: OLEObject qpdr_doc qpdr_doc = CREATE oleObject result = qpdr_doc.connecttonewobject("word.application") if result <> 0 then destroy qpdr_doc Messagebox("connect to new object","result = " + string(result)) return false end if qpdr_doc.Documents.open(ls_filename) <--------- Program crashes here Thanks for any help that can be provided. Jerry Mark Maslow Posted on 2002-01-30 00:21:48.0Z Newsgroups: sybase.public.powerbuilder.generalFrom: "Mark Maslow"
links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > General Discussion > "Error calling external object function SendMail" Error calling external object function SendMail 3 posts in General Discussion . Last posting was on 2008-09-26 15:47:49.0Z Paul Baudouin Posted on 2008-09-24 http://nntp-archive.sybase.com/nntp-archive/action/article/%3C385_DxUvsqRqBHA.52@forums.sybase.com%3E 09:56:02.0Z Sender: 1227.48d7adc4.1804289383@sybase.comFrom: Paul BaudouinNewsgroups: sybase.public.powerbuilder.generalSubject: Error calling external object function SendMailX-Mailer: WebNews to Mail Gateway v1.1tMessage-ID: <48da0eb2.6990.1681692777@sybase.com>MIME-Version: 1.0Content-Type: multipart/mixed; boundary="-=_forums-1-dub48da0eb2"NNTP-Posting-Host: 10.22.241.41X-Original-NNTP-Posting-Host: 10.22.241.41Date: 24 Sep 2008 02:56:02 -0700X-Trace: forums-1-dub 1222250162 10.22.241.41 (24 Sep 2008 02:56:02 -0700)X-Original-Trace: 24 Sep 2008 02:56:02 -0700, 10.22.241.41Lines: 8037Path: forums-1-dub!not-for-mailXref: forums-1-dub sybase.public.powerbuilder.general:217452 Article PK: 668041 Download error calling external object http://nntp-archive.sybase.com/nntp-archive/action/article/%3C48da0eb2.6990.1681692777@sybase.com%3E function.doc Hi, We are using PB 11.1 build 8204 and want to send a mail from our application using the aspSmartMail.dll. This works fine when we run the application on our own MS Server 2003 (SP1) and some of the servers from our customers. When we deployed this on the server of a new customer MS Server 2003 R2(SP2), this doesn't work. The dll was registered using the regsvr32 statement. We checked in the registry and found all the expected keys and values. This is the code used : OLEObject ol ol = CREATE OLEObject IF IsValid(ol) THEN ll_test= ol.ConnectToNewObject("aspSmartMail.SmartMail") ls_logpath = 'c:\temp\' ol.LogPath(ls_logpath) ol.SenderName = ls_mi_afzender ol.SenderAddress = ls_mi_afzender_adres ol.Server = ls_pa_smtp ol.ContentType = "text/html" ol.Organization = "Aktiv Consulting" ol.Subject = ls_mi_subject ol.Recipients.Add(ls_ma_email, ls_ma_naam) ol.ReturnReceipt = true ol.ConfirmRead = true ol.Body(ls_body) ol.SendMail() end if The strange thing is that on the server of this customer no logfile is created (cfr ol.LogPath), but we only get an e
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/22946090/powerbuilder-word-ole-run-time-error-35-while-setformresult have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads https://www.amyuni.com/forum/viewtopic.php?f=5&t=1958 with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, powerbuilder application just like you, helping each other. Join them; it only takes a minute: Sign up Powerbuilder word OLE: Run time error 35 while setformresult up vote 0 down vote favorite I am using powerbuilder 12.5 to add data to word templates using bookmarks.When I use objword.setformresult(bookmarkname,value) I get run time error 35 "error calling external powerbuilder application execution object function setformresult" Info: We have recently migrated powerbuilder 6.5 to 12.5 but still we use Office 2003 ole powerbuilder share|improve this question edited Apr 10 '14 at 11:12 asked Apr 8 '14 at 19:08 jeyaganesh 44331740 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote This is how I do it: lole_word = CREATE OLEObject lole_word.ConnectToNewObject ("word.application") lole_Document = lole_word.Documents.Open (is_infile,FALSE,TRUE,FALSE) lole_range = lole_document.Bookmarks.item(ls_bookmark).Range lole_range.Text = ls_newText Always put code like this a Try..Catch block and catch OleRuntimeError and RuntimeError. Note that replacing the text will remove the bookmark. If you need the bookmark you have to remember where it is (for example lole_document.Bookmarks.item(ls_bookmark).Start) and add the bookmark to the document again. share|improve this answer answered Apr 9 '14 at 11:54 Hugh Brackett 2,500618 Program successfully connects to word application and reads through the bookmarks.The error occurs when updating the bookmar with data. –jeyaganesh Apr 10 '14 at 3:45 Error occurs on lole_range.Text = l
FAQ Login Information The requested topic does not exist. Board index The team • Delete all board cookies • All times are UTC - 4 hours Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group