DC_Workarea2excel number format

This forum is for eXpress++ general support.
Message
Author
Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

DC_Workarea2excel number format

#1 Post by Victorio »

Hi,
I have some problem with export data to excel.
When exporting number field with decimals, program error:

Error Automation/6500;Description : Nie je možné nastaviť vlastnosť NumberFormat triedy Range;Operation : NumberFormat;Thread ID : 1

(Cannot set Number Format...)

Solution is only export number as text but with this is problem when user want work with excel table, counting columns etc.

Any help ?
THX

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DC_Workarea2excel number format

#2 Post by Eugene Lutsenko »

I also had something like this and I asked about it on the forum

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_Workarea2excel number format

#3 Post by Victorio »

Eugene, I looked for your message, but found you some solution ?
This is not very important, can use text field, only user can not direct use Sum function, need convert column to number.
I mait this have something with send data to excel sheet, I must study how can set decimals in Excel table.

I found modified version of DC_Workarea2excel here :
http://bb.donnay-software.com/donnay/vi ... area2excel

I must examine it ...

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Workarea2excel number format

#4 Post by rdonnay »

Can you give me a sample program that causes this error?
The eXpress train is coming - and it has more cars.

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_Workarea2excel number format

#5 Post by Victorio »

Roger, example is in attached file.
I looked for problem, it is something around this :

IF !Empty(cFormat)
oSheet:Columns(i):NumberFormat := cFormat
ENDIF

but I do not exclude that can be some problem with Office or excel setting. I am using Office 365.
Attachments
TestFunkcii.zip
(654.71 KiB) Downloaded 635 times

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Workarea2excel number format

#6 Post by rdonnay »

Everything seems to work ok for me.

It is possible that you do not have the most current version of DC_WorkArea2Excel().

The file _DCFUNCT.PRG is attached.

Copy it to your \exp20\source\dclipx folder and run BUILD20.BAT to rebuild DCLIPX.DLL.
Attachments
WorkArea2Excel.zip
(58.51 KiB) Downloaded 676 times
The eXpress train is coming - and it has more cars.

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_Workarea2excel number format

#7 Post by Victorio »

Thank you , I will try it and write how it works.
Viktor

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: DC_Workarea2excel number format

#8 Post by hz_scotty »

with the new _dcfunct.prg there is a unresolved external symbol DC_GETSQLSTATMENT
by rebuild.

:think:
best regards
Hans

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: DC_Workarea2excel number format

#9 Post by hz_scotty »

DC_SQLSTATEMENT Line 3248 :whistle:
best regards
Hans

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Workarea2excel number format

#10 Post by rdonnay »

Sorry. There is a lot of new stuff coming up in eXpress++ build 267.

It looks like you need _DCSQL.PRG.
Attachments
_dcsql.zip
(5.25 KiB) Downloaded 660 times
The eXpress train is coming - and it has more cars.

Post Reply