Issues exporting an Excel file from Crystal Reports - visual-studio

I am having an issue exporting Crystal Reports into an excel file.
I tried both options of exporting the Excel data AND exporting as an excel file. When i export my Crystal Report as an excel file, i cannot sort any of the fields in my excel file.
When i export the report as just the excel data, when i open in Excel, the headers are really messed up. The first three headers appear at the END of all of the columns--which doesn't make any sense to me.
Does anybody know how to change export options in Visual Studio? I am using Crystal Reports on Visual Studio and have no idea how to change any of these options.

It sounds like your report has not been laid out in an optimal way for Excel export, and it's not Visual Studio or the export options that is the problem here. Depending on your version of Crystal, some tips would be :
1) Make sure all column headers are the same width and left-most position as the data they relate to.
2) Minimize gaps between column headers, and also gaps between detail rows.
Unless you're using earlier than CR8.5, it's likely you can't sort because the export has created lots of merged cells - points 1 and 2 will mitigate this substantially. Basically, if you're exporting to Excel you want your report's data to be laid out as similar to an Excel spreadsheet as possible.

Related

Create a Database Diagram based on MS SSAS Data Source View in a printable format

in Visual Studio (2017 SSDT), if I open my MS SSAS cube, in the "Cube Structure" tab, under "Data Source View" I see all the tables/views that are used with all the relationships.
Since there are a lot of tables (with a lot of attributes) it is not possible to see all of them on the screen.
Is it somehow possible to export this Data Source View from Visual Studio or any other tool in a printable version (into jpg, pdf,... any format), to see all tables and attributes, and relationships?
Thank you.
BR, Tadej

Relink SSRS report to Officewriter template

We have some SSRS reports with several tabs which have been developed in SoftArtisans Officewriter as well. We had some consultants make changes to the reports and they redeployed them without touching the Officewriter portion, thus overwriting. The reports will not render in Excel Officewriter now.
My question, is this, is there a way to relink an older copy of the Officewriter template from 9 months ago, to the newer copy of the SSRS report? I could then add any changes from the last 9 mos to the Officewriter template without starting from scratch. When I open the Officewriter addin and open the report, all of the datamarkers are available, but the spreadsheet is blank.
Although the report will not render in Excel OfficeWriter, the SSRS XML code does have some mention of OfficeWriter.
OfficeWriter v9.0.0
Excel Template
I'm not very familiar with XML or what happens behind the scenes between SSRS and Officewriter. Any help is appreciated.
Thank you!
Yannispawn
The easiest way to do this, would be to actually download and use the newest version of the OfficeWriter Designer.
Newer versions of the OfficeWriter Designer added functionality called "Import template" which can be used for this very use case.
You open the the SSRS template with the designer, and the select Import. From there you select your new Excel File. This will now replace and associate your new excel file with the existing SSRS report.

The information of header and footer section is missing on last few pages of a RDLC report

I am new to the forum. Nice to meet all of you.
I am facing the problem that the header and footer section are missing on last 17 pages of RDLC report. However, the previous 60+ pages of report is worked well.The header and footer section is containing both static and dynamic data.
After I go to find the solution, I found that the operation code of report should be no problem and the only thing that may be problem is the things on layout may cause the error.
I also try to make the report with two export: PDF and EXCEL.I found that only PDF have this problem but EXCEL don't have this kind of problem. However, I cant find the problem to change the layout.
I am using SQL server management studio to manage database, Microsoft Dynamic Nav 2013 to get the data from database ,Visual Studio 2010 to manage layout of report.
Thus, hope you guys could suggest some idea for me as this types of problem don't have any discussion on internet.
After my mind is dropping into hell and try to change setting of the places that may be cause the error in more than 10 hours, I finally found the solution!!!
In my report body content, it has a list1 tablix to contain a rectangle that contains two tables to show the list of transactions.I just change the KeepTogether to "True" in the properties of the two tables, the list1 tablix, and the rectangle.And change the PointBreak to "end" for list1 tablix.
Thus, the report is worked well in PDF export.

Cognos Report Studio: how to export data table attached to chart in excel

Cognos Report Studio: how to export data table attached to chart in excel
I want to export a cognos report out to excel. In my report, there are two tables and two charts. When I export to excel, the charts are rendered as static images. What I want is to export the cognos report with two charts which data sources are from the two tables. Like simple charts in excel, chart data range is selected from the table.
The purpose of doing this, is for me to be able to import the excel charts to Roambi. Roambi needs a chart which data range is from a table.
Thanks a lot.
Yin.
What Cognos BI version do you have?
In Cognos 10.2 Chart is exported as Chart in Excel 2007. And you can unhide hidden list of data for chart.
But ykud is right - try Active report for mobile users.
Thank you, Alexey Baturin!
I am using cognos 10.2. And I found out that there is chart data in the hidden tabs. Sorry for late reply bcos I didn't see it.
I found out that there is chart data and it's only importing problem in Roambi.
I uploaded to the sharepoint as a data source for Roambi. But I can't import this file sometimes, showing the error "This file has no content. It cannot be imported". This is inconsistent.
I have found out a way to resolve:
I export the cognos report to excel.
Open the excel file, Save and Close. No need to change anything.
And upload to sharepoint.
Then I have no error and can import to Roambi.
I can’t afford any manual intervention like this, for this process.

Crystal Reports image loading on runtime

I have some reports with many records. Those records have images. They were coming from a .NET Dataset object.
I was initially making the approach of getting the images' contents into the records using System.Byte[] Columns, but the reports took up too much time to load.
I did time profiling. It is not the dataset construction that takes too much.
I put on the table the hypothesis of the images being slowing the process.
So I tried a different approach: Instead of having pictures directly into the tables, I have filepaths.
Following the practic described in Crystal Reports User Guide, I inserted a OLE object of "Paintbrush Picture Type" and its Image's Graphic Location was ser to a database table field. Additionally I also defined a file hyperlink to be the same field.
I tried, it didn' t show the image. But clicking the hyperlink was OK.
So I added more two OLE object items in the report for testing: the first's Graphic location and hyperlink have the filepath of the first record's image. It is a .jpg file.
I created additionally a .bmp copy of that image and set the second item's filepaths to point to this image.
Tested again, hyperlinks work Ok, but no images shown directly in report .
When I click Preview on Visual Studio 2010 Crystal Reports designer I can see the images, but not in runtime.
So, what am I missing for the images to show?
additional info:
VS 2010 premium
.Net framework 4
Windows 7 64 bits
Crystal reports is integrated on Visual Studio
Thanks in advance,
Sérgio
After some frustrating times, it seems I have found a solution in 3 easy steps:
Uninstall every component of Crystal Reports for VS 2008
Reopen Visual Studio 2010
Clean & Rebuild Solution
If you are using CR as a component, during runtime you will notice that the top bar of the component is different: the icons have different design and at right it will say "SAP CRYSTAL REPORTS"

Resources