Home > Error Calling > Error Calling External Object Function Saveas Powerbuilder

Error Calling External Object Function Saveas Powerbuilder

Contents

As far as I can tell, the error is occuring > whenever there is a "oleobject.ActiveDocument" in a line of code, for > example, > > ole_object.ActiveDocument.SaveAs(ls_filename) //******* > > I Close this window and log in. IF ole_object.ConnectToNewObject("word.application.8") = 0 THEN IF li_template = 1 THEN w_progress.wf_progress("Loading Letter Template....") ole_object.Documents.open(ls_str+"\s01ltr.doc") ELSE w_progress.wf_progress("Preparing to Format without Template....") ole_object.Documents.open(ls_str+"\s01ltr1.doc") END IF ELSE MessageBox('OLE Error','Unable to start an OLE server To create it: 1) Go to 'File/New...', and then the 'PB Object' tab. 2) Select the 'Standard Class' icon and click OK. 3) When the 'Select Standard Class Type' dialog appears, this contact form

my approach, I have been using many times till now: Check excel is open or not, use use can use api or wsh script in the internet to check app opened. Here's some sample code: ======================================== Long ll_result String ls_fileName OleObject lole_wordInitial ole_word lole_word // Create this as a subclass of OleObject lole_wordInitial = CREATE OleObject ll_result = lole_wordInitial.ConnectToNewObject( "word.application.8" ) IF any solutions or proper way to know if the excel file is open. parameter to see if it can be opened, followed immediately by a FileClose () if it was successful. (I think this is a PowerScript-specific variation on the DXL solution Colin linked http://stackoverflow.com/questions/9579658/excel-object-saveas-error-happens-when-existing-file-is-open

Error Calling External Object Function Powerbuilder

worksheets(1).Columns(11).NumberFormat = "£#,##0.00" lole_excel.application.workbooks(1). Look for the Help topic "Exception Settings dialog box" for details. Version 2.1.01 now available at the Sandbox ^ ^ o o =*= © Copyright Mon Oct 10 14:56:28 UTC 2016, SAP Inc. - Forums Archive v 2.2 × Sybase NNTP Mike Terry Voth Posted on 2002-08-02 02:18:34.0Z Newsgroups: sybase.public.powerbuilder.generalFrom: Terry Voth Subject: Re: OLE error 35 (repost)Date: Thu, 01 Aug 2002 22:18:34 -0400X-Newsreader: Forte Agent 1.91/32.564MIME-Version: 1.0Content-Type: text/plain; charset=us-asciiContent-Transfer-Encoding: 7bitLines: 17NNTP-Posting-Host:

Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free. I havent figured this out. Mike Mike Posted on 2002-08-01 16:22:00.0Z Newsgroups: sybase.public.powerbuilder.generalFrom: MikeDate: Thu, 1 Aug 2002 12:22:00 -0400Subject: Re: OLE error 35 (repost)Lines: 8MIME-Version: 1.0Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: 7bitMessage-ID: <[email protected]>References: <[email protected]> <[email protected]> <[email protected]>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!newsXref: forums-1-dub worksheets(1).Range("K"+string(li_lastrow)+":K"+string(li_lastrow)).Formula = "=SUM(K1:K"+string(li_nextrow)+")" lole_excel.application.workbooks(1).

As far as I can tell, the error is occuring whenever there is a "oleobject.ActiveDocument" in a line of code, for example, ole_object.ActiveDocument.SaveAs(ls_filename) //******* I have caught the return code from I'm also not clear from the code clip why you'd need to call a Save(), either time; this could be expendable as well. Is it possible to see which Excel file is causing the problem, and can that file be independently opened in Excel? –Richard Everett Feb 19 '11 at 13:01 actually http://answers.microsoft.com/en-us/windows/forum/windows_vista-performance/error-35-error-calling-external-object-function/14149fa5-e608-429e-aaf3-37d5938966af Register now while it's still free!

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN). Does the string "...CATCAT..." appear in the DNA of Felis catus? Hope that helps! Browse other questions tagged excel powerbuilder or ask your own question.

Powerbuilder Application Execution Error (r0035)

Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. http://nntp-archive.sybase.com/nntp-archive/action/article/%3C385_F0AB[email protected]%3E In 5.0.3 it worked fine with Word 97, but I recently > migrated the application to PB 8.0.1 Build 9056. Error Calling External Object Function Powerbuilder Allow multiple GUI elements to react dynamically to interaction with a single element Train and bus costs in Switzerland Should I serve jury duty when I have no respect for the worksheets(1).Columns(10).NumberFormat = "£#,##0.00" lole_excel.application.workbooks(1).

Last posting was on 2002-08-02 16:47:44.0Z Mike Posted on 2002-08-01 14:03:01.0Z Newsgroups: sybase.public.powerbuilder.generalFrom: MikeDate: Thu, 1 Aug 2002 10:03:01 -0400Subject: OLE error 35 (repost)Lines: 312MIME-Version: 1.0Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: 7bitMessage-ID: <[email protected]>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!newsXref: http://oncarecrm.com/error-calling/error-calling-external-object-function-open-powerbuilder.html Browse other questions tagged excel ms-office ole powerbuilder or ask your own question. Why are three-bladed helicopters relatively rare? In PB 8 with the same Word > 97 I am getting Error number 35 errors. > > The below code is in the clicked event of a CB and the

The system returned: (22) Invalid argument The remote host or network may be down. Red Flag This Post Please let us know here why this post is inappropriate. worksheets(1).Columns(9).NumberFormat = "#,##0" lole_excel.application.workbooks(1). navigate here Thanks, Mike I inherited an application written on PB 5.0.3 in which the below ole calls are made.

I really stuck with this issue, if anyone can help that will be grateful. Forums Archive > PowerBuilder > General Discussion > "OLE error 35 (repost)" OLE error 35 (repost) 7 posts in General Discussion . Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action.

Thanks for the answers...! –Sid Mar 8 '12 at 7:12 add a comment| up vote 0 down vote I'd try a PowerScript FileOpen () call with a LockReadWrite!

The dll is called and runs fine for a while but PB errors out after a period of time on the activedocument.saveas statement. worksheets(1).Columns(5).HorizontalAlignment = -4108 lole_excel.application.workbooks(1). The need for the Gram–Schmidt process A problem on integrals Can anyone explain why my normals have a mind of their own Is it a fallacy, and if so which, to Mitt kontoSökMapsYouTubePlayNyheterGmailDriveKalenderGoogle+ÖversättFotonMerDokumentBloggerKontakterHangoutsÄnnu mer från GoogleLogga inDolda fältSök efter grupper eller meddelanden Find product ...*Security ActiveXwodCryptwodSSHwodSFTPwodSSHServerwodSSHTunnelwodSSHpackagewodSFTPdll*Security .NETwodSSH.NETwodSFTP.NETwodFtpDLX.NETwodWebServer.NET*General ProtocolswodAppUpdatewodHttpDLXwodFtpDLXwodTelnetDLXwodFTPServerwodWebServerwodVPNwodXMPP*MailwodMailServerwodMailboxwodImapServerwodSmtpServerwodPop3ServerwodSmtpwodPop3*FreewodBeepwodDHCPServerwodShellMenu WeOnlyDo Discussion board Log inRegister Search: New topic RefreshOrderFold threadsTable view All

Last posting was on 2001-09-06 15:30:52.0Z Lesa Posted on 2001-09-05 19:39:47.0Z Newsgroups: sybase.public.powerbuilder.ole-ocx-activexFrom: LesaDate: Wed, 5 Sep 2001 15:39:47 -0400Subject: Error calling external object function (R0035)Lines: 53MIME-Version: 1.0Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: 7bitMessage-ID: Join them; it only takes a minute: Sign up Excel Object SaveAs, error happens when Existing File is Open up vote 0 down vote favorite Excel_Obj = CREATE OleObject Excel_Obj.ConnectToNewObject( 'excel.application' Using DC voltage instead of AC to supply SMPS How to automatically run a command after exiting ssh Coworker being disrespectful in meetings and other areas Could accessed sites over an his comment is here By joining you are opting in to receive e-mail.