Link to home
Start Free TrialLog in
Avatar of mltolun
mltolun

asked on

ActiveReport and Excel

HI, i am trying to export an ActiveReport to Excel. But when i do this, the columns showed are not aligned. Besides one cell shows "####" value instead of the real  (numeric)value. Any suggestions?
thanks
ASKER CERTIFIED SOLUTION
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rpai
rpai

Please close your open questions:-
Questions Asked 11
Last 10 Grades Given A A B A B B  
Question Grading Record 6 Answers Graded / 6 Answers Received
Avatar of mltolun

ASKER

rpai: i am working on it. SORRY

Richie Simonetti: when watch the cell properties, the format of the cell is changed. when i change it to general, the number appeared. What about the column alignment? any suggestions??
I use ActiveReports as well and have not been able to get the Excel export to work exactly right.  Sometimes it just does not export the report exactly right.  I have not been able to find anything in KB.  I don't know if there is much you are going to be able to do.  Can you try to make minor modifications to the report and see if that helps?

(Of course, I'll be listening to see if anyone has a  solution) :)
To me, it depends on how do you manage final excel file.
I didn't use ActiveReport so i think you could open Excel file with Automation and do a complete custom view of it (cell formatting, color, bold alignment and so on).
Richie, you are saying to open Excel after the export and format it correctly?
I think Richie has the best solution.  There is no way to modify the Excel export in Active Reports.  There are no properties to set.  It is one call.  It either exports correctly or it doesn't.  I don't see any other alternative except to continue to look for updates of the Excel export for ActiveReports.
Optionally, and if you open the same reports over and over again, we could have templates with all formatting stuff and populate the excel template with data from report (not a good solution since you have to recreate the report in Excel but, in the other side, nou using reports at all and using excel instead could be a way)
Don't forget that excel supports copyfromrecordset method of Range object so, populate an excel sheet with sthe same source recordset as the report should not be so hard.
Hi mltolun,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Richie_Simonetti's comment(s) as an answer.

mltolun, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange