Why does the excel export add an extra row to every line in my report that uses backcolor? I have noticed this in some reports that have the PageHeader.BackColor = LightGray and in another report that sets the backcolor of every other detail line to LightGray. When I look at the excel output, I have two rows for the lines that are gray - one row with gray background and no data and another row with gray background and the detail data.
I am using the following settings:
xls.FileFormat = DataDynamics.ActiveReports.Export.Xls.
xls.UseCellMerging =
xls.AutoRowHeight =
xls.RemoveVerticalSpace =
xls.MinColumnWidth = (
thanks!
The first step is to make sure that you are using the latest build (1205). By default, the Active Reports assemblies should be installed at the following path on your machine: C:\Program Files\Common Files\Data Dynamics\ActiveReports for .NET 2.0. You can right click on the ActiveReports.dll, choose Properties, and then version, to check which version of the asseblies you are currently running. If you are not using the most recent build, you can download it here: http://www.datadynamics.com/forums/64/ShowForum.aspx. If this does not resolve the issue, please save your report output to the RDF format and attach it to this thread so that I can take a look at it. You can save the report to the RDF format by calling the .Document.Save method off of the report object after the report has been run.
Ex.
rpt.Document.Save(@"C:\Output.RDF");
I am definitely using build 1205. I have checked this a number of times. :-)
I am attaching a zip file with the xls and the rdf of the report so you can see what is happening.
thanks! Koren
Well, that didn't work. Now, all of my rows that expand on the other types of reports (e.g. PDF, HTML) create two rows in excel. Any other ideas?
thx, Koren