MS Office Click To Run & OLE

MS Office Click To Run & OLE

Postby hua » Fri Jul 27, 2018 4:51 am

Hi guys,

One of our customer recently upgraded her Office 2007 with Office 2016.

After the upgrade one of the our report options that exports data directly into Excel using OLE always ends up with a run time error.

Any idea how to get this fix?

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: MS Office Click To Run & OLE

Postby hmpaquito » Fri Jul 27, 2018 10:21 am

Hi,

Call stack and description error is neccesary.

Regards
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: MS Office Click To Run & OLE

Postby stefano » Sat Jul 28, 2018 9:04 pm

you have to change the excel settings.
now I'm on vacation ...

Saluti
Stefano
FWH 14.11 + xHarbour + bcc582
stefano
 
Posts: 80
Joined: Tue Mar 25, 2008 9:03 pm
Location: ITALIA

Re: MS Office Click To Run & OLE

Postby hua » Mon Jul 30, 2018 3:45 am

hmpaquito wrote:Hi,
Call stack and description error is neccesary.


Thanks for the reply. If I recompile the program using Harbour, it will simply terminates silently. No message whatsoever.

If I compile it using xHarbour, I'll get the following error message
Code: Select all  Expand view

   Error description: Error Excel.Application:ACTIVESHEET:CELLS/0  S_OK: SELECT
   Args:

Stack Calls
===========
   Called from: source\rtl\win32ole.prg => TOLEAUTO:SELECT(0)
   Called from: .\xport.PRG => XPORTPAY:END(166)


That line simply has the code
Code: Select all  Expand view
oSheet:Cells( ::nRow, 1 ):Select()
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: MS Office Click To Run & OLE

Postby hua » Mon Jul 30, 2018 4:10 am

stefano wrote:you have to change the excel settings.
now I'm on vacation ...


Thanks for the reply Stefano. Hope to get your input once you're able to check what the setting was.

Thanks.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests