MS Office Click To Run & OLE

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

MS Office Click To Run & OLE

Post by hua »

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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
hmpaquito
Posts: 1200
Joined: Thu Oct 30, 2008 2:37 pm

Re: MS Office Click To Run & OLE

Post by hmpaquito »

Hi,

Call stack and description error is neccesary.

Regards
stefano
Posts: 80
Joined: Tue Mar 25, 2008 9:03 pm
Location: ITALIA

Re: MS Office Click To Run & OLE

Post by stefano »

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

Saluti
Stefano
FWH 14.11 + xHarbour + bcc582
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: MS Office Click To Run & OLE

Post by hua »

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

   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

oSheet:Cells( ::nRow, 1 ):Select()
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: MS Office Click To Run & OLE

Post by hua »

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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply