We have a problem when printing reports from within our application.
We want to avoid, that the print function in Crystal Reports 2008 scales reports automatically, so that the full report content fits into the printable area of the specific printer.
The predecessor Crystal reports 11 did not scale anything, that’s what we want to achieve for Crystal Reports 2008.
Sadly the following code throws an exception:
Dim layout As New CrystalDecisions.Shared.PrintLayoutSettings
'Disable scaling, does not work
layout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale
crystalReport.PrintToPrinter(printerSettings:=printerSettings,
pageSettings:=pageSettings,
reformatReportPageSettings:=False,
layoutSettings:=layout)
Interestingly the SAP Crystal Report Viewer 2008 prints reports correctly, without scaling, so we guess the functionality exists.
Have you tried this setting?
crystalReport.PrintOptions.DissociatePageSizeAndPrinterPaperSize
Have you tried setting this registry key?
HKEY_LOCAL_MACHINE\SOFTWARE\BusinessObjects\Suite12.0\CrystalReports\DesignerOptions
"DealWithMinimalMarginsWhenPrinting"="0"
From SAP forum. Did not work for us, but we are using CR for VS 2010.
According to this it might not be possible. The only workaround, we found so far, is to set your margins to printable area. Might not work for you.
In our case, we're using the custom paper size (8.27x8.75) and in crystal report viewer the scaling and centre settings were greyed out while set to True as described in the question above. By adding our custom paper size in the printer properties (customer paper) the problem has been fixed.
Related
As asked by few other members, on similar line, I want to have landscape orientation for only one of my subreport. I am using iReport 5.6.0 and JasperReports 5.6.0.
I searched and almost all solutions suggest to have 2 separate reports and add/append them programmatically as mentioned here.
This solution is probably not ideal for me as I have 4 dynamic subreports(can produce variable number of pages at run time) and I want only third subreport to be landscaped. So, at run time it will be difficult to identify the point to append my landscaped report.
Questions that I have:
Is this native feature now introduced in any new version of iReport to support different orientation of subreport?
If no inbuilt support in iReport, how can I programatically add
subreport in between, if I don't know at which location/page the subreport will be added.
I tried to look for a solution in JasperSoft Studio as well, but not success.
Thanks in advance.
Starting with JasperReports v6.0 you may achieve what you want with a Report Book. It is basically a report bundle where each report can have a different orientation.
But since Jaspersoft Studio(with version 5.5.0) became the official design client for JasperReports, you will not find this feature in iReport. So starting with Jaspersoft Studio v6.0 you will be able to use it.
I am using jasper reports in my project to generate html reports. But the generated reports are static. Now we want to add some interactive features in it, like simple sorting and searching of columns. This is preferably to be done the client side. How can this be achieved ? So far I have tried to embed jquery into the generated report with no luck. Does jasper report provide such kind of functionality?
Use parameters and re compile the report every time you want to filter the data.
With your meaning of the word "interactive", nope that is not possible. A report is only a report - a presentation medium that shows data in such manner that is required by the business rule. You can format data here. You can stylize it, add image and what not. A client side application is probably what you want.
Well, your exact requirement can be achieved if you publish the Jasper Reports on the Jasper Server. Once published, all your reports become interactive (For Charts, you must use the PRO charts and not the basic HTML charts but for tables, it works automatically.)
Once you publish it on the Jasper Server, the features that you get are:
Sort button with various types
Export the Report to many formats (PDF, XML, etc - more than 10).
Zoom IN and Zoom Out.
Bubble for your charts making them interactive, etc.
Yes, interactivity is possible in Jasper Reports, but the thing is that you need a Jasper Server Pro or Enterprise version for achieving this. If you are using a community version, it is impossible to create interactive reports. You can download the free trail pro version of jasper server for 60 days from this link https://www.jaspersoft.com/download
For much more details go through this link https://www.jaspersoft.com/community-commercial
Choose according to your requirement.
I'm building report using SSRS 2008 (Report builder 3.0)
I'm afraid I know the answer but still wondering if there is a way to link to Drill down report from the Legend area ? I know I can do it from the data labels.
Did anyone succeeded to crate some workarounds?
I won't claim this as my own but as soon as I read it I felt silly myself. ;)
Basically use a tablix next to your chart.
SSRS (Reporting Services) Separate Legend (as Tablix) From Chart or Graph with Drilldown Links
I'm using a Crystal Reports Web Viewer to display a CR report. It works perfectly fine in a CR Designer preview, however when I view it in a browser (any) the crosstab does not look as expected:
Specifically, column and row names have an additional margin added (values are displayed correctly) which cases the problem. I tried to change paragraph margin settings in my site's css file, but it doesn't make any difference. What could be causing this problem and how could this be solved?
When I change the specific p element margin property using Firebug, it displays correctly:
This is actually a Crystal Reports bug which affects 13.0.4 Version, it works fine when you run the same report using the 13.0.3 (and probably earlier) version. This bug is known to the CR team but won't be fixed till October (3 months to fix something that worked fine previously...): http://scn.sap.com/thread/3207181
Just love Crystal...
I created a simple grouping report using BIDS 2008 and have set the following properties of a textbox to hide a row in the Table (or Tablix) control.
CanGrow = false
CanShrink = true
Hidden = true
The report displays fine in Preview mode, however, when I deploy the reports to the server and view it, it doesn't render the same way. While the row remains hidden (I set it to an obnoxious color to see if would display on the server), there's a huge gap between the headers and the details in the report.
My question is, does the preview mode using a different rendering engine than the Reports Manager?
You can check the versions of bids being used locally and on your server to see if they are the same.
Visual Studio Help > About > Find SQL Server Reporting Services in the list and click on it. I currently have Version 10.50.1600.1
Report Manager In a browser open your http://[ServerName or Address]/Reportserver. At the bottom it will also have the version number, make sure these are the same, otherwise you could have varying results.
Also, the rendering engine is different for the viewer compared to print/PDF. A quick test would be to overlap some items on a report. In the viewer, the rendering engine will seperate these items so they are not touching, while print and PDF will leave them overlapped. This is just one of the differences I've noticed.
Yes, I believe the rendering engines are different.
In preview mode, have you turned on "Print Layout"? I have found that will give you a much more accurate idea of what the report will look like on the server.
Is this gap the same size as the textbox?