Export Excel formula not calculating

Stimulsoft Reports.NET discussion
Post Reply
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Export Excel formula not calculating

Post by fkmfkm »

Hi,

I am using this to export my report

rep.ExportDocument(Stimulsoft.Report.StiExportFormat.Excel, xlsFilename)


In my report I have this.

Text Format: Number
Excel Value: =SUM(H30:I30)

The problem is after exported; the excel formula wont calculate.


Please Help.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export Excel formula not calculating

Post by Alex K. »

Hello,

Can you please send us your report with test data for analysis.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Re: Export Excel formula not calculating

Post by fkmfkm »

I have saved it using

rep.Render()
rep.SaveDocument("report.mrt")

The cell with the Excel formula is Text69.


I have also included the exported excel.


Thank you very much.
Attachments
DocViewer.xls
(26 KiB) Downloaded 365 times
report.mrt
(51.57 KiB) Downloaded 516 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export Excel formula not calculating

Post by HighAley »

Hello.

The formulas work is XLSX files.
The XLS file are is binary format and we will not make any improvement there.
To get the value you should go to the Edit mode of the cell with formula and press Enter.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Re: Export Excel formula not calculating

Post by fkmfkm »

Hi,

What do you mean by the formulas work in XLSX files ?

Do I export it differently ? How should I export it ?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export Excel formula not calculating

Post by HighAley »

Hello.

Please, try to export to Excel format instead of Excel97-2003.
From code you should use StiExportFormat.Excel2007 format.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Re: Export Excel formula not calculating

Post by fkmfkm »

Great, Its working.


Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Export Excel formula not calculating

Post by Jan »

Hello,

Glad to help you!

Thank you.
Post Reply