How do I create one report from multiple Crystal Report rpt files - crystal-reports

I have multiple Crystal Reports rpt files and I need to create only one file from them. The file might be any type of rpt, pdf, doc, excel etc.
My problem is that the report files contain subreports and creating a new report and adding them as subreports doesn't seem to work correctly, not showing the data from subreports in subreports.
I know that CR doesn't support subreports in subreports but I need to find a workaround to create only one file from the reports that I have.
Please help !

Not a problem.
Step 1: Export all your Crystal Reports to PDF.
Step 2: Use a freeware PDF merger to merge them all together.
I made a quick google search and found http://www.pdfsam.org/. According to the FAQ, they also have a command-line version (if you need to automate this process, that's the way to go).
Probably the biggest problem you'll have is making all these separate PDFs look like a single document. You might have to get creative with things like page numbers.

You should be able to create one report that contains all of the subreports. If there is no link (join) between the data, it should still work. If there is one (or more) between them, that should be possible too.

Related

Crystal Reports Loading Database info

I have SAP Crystal Reports 2011 and use it to edit reports we use with JobBOSS ERP system. These reports were all put in place before I started here and am just now learning Crystal Reports. I am trying to edit the reports but am having issues.
So when I open the report in Crystal Reports the Field Explorer is showing that the file being used to pull fields into the reports is a TTX file. I know nothing about TTX files and assumed I could just find the data in my tables and import it in but apparently that wont mix well from what I am understanding. I have no clue what to do with the TTX and being able to populate the fields on the page with data from another table.
Where do I start with this? All of my forms use the TTX to pull data. Does anyone have any resources that can help me with this?
To change this report, you must use the report version in the JobBoss production report folder (.rpt). Save the .rpt to a work area. Make changes and then place back in the folder retrieved from. You can add tables to this kind of report but cannot change the .ttx table. The report must be run from within Jobboss. Save the original .rpt to a save folder first. Call with questions.

On demand sub reports in crystal reports

I have a report where I am using an on-demand sub-report. But my user is viewing this report from a java application. So whenever he run the report he will view this report in PDF.
Report format:
country name location sales
<on-demand subreport>
Now once he run the report he will get all the above fields data in PDF format.
So now if clicked on location field data in PDF will he get the sub-report's data.
PDF isn't intended to generate dynamic content. As such, you'll need to find an approach that will render the desire content in a static manner.
I would suggest that you parameterize your report to display one of these options:
main only
main + subreport
The PDF will either contain the main report's content or the main and subreport's content.
** edit **
If you are using BusinessObjects Enterprise (BOE), you could use the openDocument API to generate a new report instance or the most-recently-generated instance. I don't know if Crystal Reports Server supports this feature for certain.
If you are rendering reports in a Java application, then you will need to a way to intercept the hyperlinks--a server, most likely. By in large, you'd be reinventing Crystal Reports Server/BOE.
Basically I understand as you need two thing.
you need to generate a report and export/generate in pdf.
in you need to attach link or something like editable field pdf.
For First answer, you can easily hide/show of sub-report in crystal report side. but not after report generate in pdf.
So for second answer, you need to pdf professional or editable allow version. after you get that you simply use itextsharp.dll (to generate pdf from asp.net-see below link).
So finally I think, does not needed crystal report.
please check this link.
How to create an editable pdf in asp.net?
Pdf's fields should remain editable using itextsharp in asp.net
Creating a fillable PDF form with ITextSharp

How to create one Crystal report from multiple report files?

I have some reports that have subreports in them. I would like to have only one report, not four. The reports does not have the same layout, does not contain the same fields.
I've tried to add them as subreports into a different new file, but it seems that the data from the subreports in the subreports is not shown.
Is it possible to do this in Crystal? Maybe wrapping the generated files into one? And if so, how do I do that?
Thanks.
Alex, welcome to StackOverflow!
There's no need to repeat a question you asked less than a week ago (How do I create one report from multiple Crystal Report rpt files)
Before you go asking the same question twice, I recommend you look at the suggested answers and respond to them first.

crystal report 9

new page break is not working when exporting from Crystal report 9 using visual studio studio.net.
I have set the below options in crystal report 9 design
paper size is a3 and orientation is landscape.
I have created 2 report groups (date and org unit)
I want a page break after every new date and after every new org unit.
I have already set the new page after in group footer1 and group footer 2.
when i export to excel it doesn't break the page after each group is changed.
Can anybody help me to resolve this issue.
thanks
bby
I said this in another question regarding exporting to Excel:
If this was made with CR, I've found
that if a report is going to
consistently be exported to Excel,
it's best to remove ALL formatting
that CR has/does. Otherwise you'll get
weird anomalies like what you're
experiencing and will save you a lot
of grief down the road.
What I've done for some of my users is
create one report with no formatting,
specifically for exporting, and one
report with all the bells and whistles
of CR.
Page breaks are not understood by Excel during the export. The best bet is to do a grouping on the report and render them as tabs in the Excel document.
Crystal has a long history of problems when exporting to excel. There are quite a few tips about on how to get both good looking reports on the screen and in an Excel worksheet. There is no one answer for your problem, as it really depends on just how your report is structured. I googled on "crystal reports page break excel export" and get plenty of material to look at. For example:
Exporting to Excel in Crystal Reports .NET - Perfect Excel Exports

Storing Crystal Reports in XML files?

I was talking to somebody a recently who mentioned it was possible to store reports created using Crystal Reports as XML files.
Upon Googling this, I can't find anything suggesting that this is the case (using data stored in XML in a report, yes, but actually storing the report, the part stored by default as a .rpt file, no.
Am I correct in assuming that there was in fact some sort of misunderstanding between us and it in fact not possible to do this?
It is not possible to store the report template in XMLformat. XML is supported as export format of the "rendered" report only.
For what purpose do you need the report template in XML format. There is a Java reporting solution called Crystal-Clear which can read the Crytsal Reports report template and save it as XML report template. The other way round this does not work. After you created a XML file you cannot open the report with Crystal Reports again. But you can work with the report using Crystal-Clear which is coming with a GUI-designer too.
Use the Crystal Reports SDK to convert the RPT file format to XML.
There's a GitHub project that will convert RPT to XML. The intent of the tool is to use for diffs, so I don't know if there is a XML to RPT converter. Crystal Reports certainly can not take the XML file and open it like a .RPT file.
At least in version 8.5 XML-file is one of the supported export destinations just like PDF, Excel or Word. Seems unlikely they'd have removed the support in later versions.
I just tested in Crystal Reports 10.
Open up the report you want to export, click on export in the file menu, and at least in CR 10, XML is at the very bottom.
Next a screen appears, asking for directory and base file name to save to. According to the Window it uses "Crystal Markup Language" XML Format