Crystal Report scale to fit - vb.net

Is there a way to scale a report to fit in the printable area? Like Adobe Reader. My reports are in A4 size, but they're to close too the page borders. I bought a new printer, and the printable area is smaller than the old one, and there are some cuts in the report.
I didn't change the paper size or whatever, just the printer.
Here is an image of what's happening:

A few ideas:
By default, Crystal tends to have the Use Default Margins option selected - the default margins are not always set to the maximum printable area of the page. The answer could be as simple as unchecking the Use Default Margins option in the Page Setup dialog (from the File > Page Setup... menu) and adjusting the margins to match the previous printer's default settings.
Alternatively, some printer drivers include a scale to fit option - if this is available, it should be possible to set it within the Print Setup dialog (from the File > Printer Setup... menu option) by clicking the Properties button immediately beneath the printer name and specifying the appropriate option within the printer driver's properties.
A possible workaround (if neither of the previous ideas works) would be to export the printer output to PDF (with the old printer set as the report printer), and then print the exported PDF document to the new printer from the PDF viewer.

Related

Image disappears in Microsoft Print to Pdf

I've developed a popup window and I use the body onload='window.print()' function to print the document, and then I choose the printer Microsoft Print to Pdf, which produces a PDF. However, the main logo I have at the top of the document goes missing. I have another website which uses the same approach with a different logo and that works fine.
I have attached the problematic logo below:
The image is a PNG. I originally used a transparent background, but I thought that maybe the PDF converter thinks the ratio of dark to light is too high and hides it, so I changed the background to white to increase the lightness ratio, but to no avail.
Is there something else I can do to force the logo to appear without the user having to tweak print configurations?

Printing pdf document on paper with predifned layout

We need to print a pdf document on the page which has predefined fields on it, a formular basically, which fields needs to be filled.
We are using iTextSharp to create pdfs and we use absoulte positioning for elements based on the formular fields positioning. For instance, if the field starts 20mm from left and 20 mm from top I will put data to start at 21mm from the left and 21 mm from top so it fits inside that field. And it works well on my printer.
But my question is, can different printers mess up positioning because of different margins, font sizes, etc... Maybe it will be the same, I am not aware of what differences can different printers bring.
Is it important that user chooses Actual size option when printing pdf?
I need to know what difficulties I can expect, better to know it now then waiting customers calling when this is in production.
The problem you anticipate, exist. It can be avoided by setting a viewer preference.
See How to prevent the resizing of pages in PDF?
You have to set the print scaling to none:
writer.addViewerPreference(PdfName.PRINTSCALING, PdfName.NONE);
That's the line you'll need if you are using iText 5 (writer is an instance of PdfWriter). If you are using iText 7, you can define the viewer preferences like this:
PdfDocument pdf = new PdfDocument(new PdfWriter(dest));
PdfViewerPreferences preferences = new PdfViewerPreferences();
preferences.setPrintScaling(PdfViewerPreferencesConstants.NONE);
pdf.getCatalog().setViewerPreferences(preferences);
See Handling events; setting viewer preferences and printer properties.
Of course, end users can always overrule the print scaling in their PDF viewer, but that's their responsibility, not yours.

Reporting Services: How To Fit PDF Export On One Page?

I've built a report in Reporting Services and when we browse to the report in Internet Explorer we want to be able to export the report in PDF format. It works, but it was cutting off the columns to the right and displaying them on the next page (in PDF) because the page was too wide. I changed the orientation to landscape and it still cut off the columns on the right. Then I changed the page size to legal paper and it fits on one page, but we want the report on letter size paper. Is there a way to compress the report to fit on letter size landscape?
Here is how to get a report to fit on a letter page:
Click on the blank space outside of your report
Look at the properties and find interactive size. Set it to 11,8.5in. Set your Margins to 0.5in, 0.5in, 0.5in, 0.5in
Click on the body and select properties. Set the width to 10in and something less than 7.5 for the height.
I was having this issue too. I set my margins to zero, which allowed me to print on 1 pdf page instead of 2.
When you develop report from SpagoBI Studio
change setting of Master Page (next to Layout).
No need to change orientation but you need to
increase the width of report according to your number of columns and column with.
make sure it is greater than sum of all column's width (table width)
This will solve the issues

Reporting Services report

I created a report in reporting services 2005 with a report page size of 14in x 8.5in. The report looks fine in the reports manager and also in the report viewer. The issue is when I export the report to PDF, the page size in Adobe states 14 x 8.5 in but when you hit the print button, it selects Letter size (8.5 x 11) instead of choosing Legal size (8.5 x 14).
If you then click on 'Choose Paper Source by PDF page size' or change the paper source to legal, the report prints out exactly the way I wanted it.
Does anyone have a solution to this? Thanks in advance
I remeber we had a similar problem a few months ago with Reporting Services 2008 (not 2005).
I think the solution was to "force" the values of Width and Heigth for the desired amount, regardless of the selected item in "Paper size" dropdown box (in Report Properties -> Page Setup)
In our case, we wanted to print in A4, so we set width = 21.59cm and height = 27,94cm, even if selected paper size remains as "Letter".
Just i choosed the Report Properties -> Page Setup --> Paper Size is A4 , then it was get working fine for A4
- GAM SKJai (L&T ECC)
I've had this problem too, and I've never found a satisfactory solution. SSRS doesn't offer much control over print settings in export formats (like fit-to-one-page-across in Excel).
One work-around would be to roll your own interface, intercept the PDF file, and update the print settings before serving it up to the user. Could be a lot of work, and how would you know the intended page size? You could always parse the RDL file for the page size settings, and that would be a correct solution, but damn if that's not a lot of extra work.
EDIT: check the page size under page setup, as pv2008 suggested.
Report Properties --> Interactive Size set it to whatever you want and it stays, even after closing and reopening the report. I exported pdf and it retains the size. You can check by right clicking on the pdf and go tot properties.

SSRS report fit in PDF

What is the best way to make the SSRS reporr fit in to PDF page.
Next time please indicate what version of SSRS you are working with...
If you are careful to design your canvas to certain constraints your should be fine. Typically the PDF is going to emulate a 8.5" by 11" piece of paper - considering margins you should keep the width of your report to less than 7" but I think 6.5" is best.
You can do this by selecting the report itself, the menu in BIDS (VS) should now have a report item which you can select to reveal Report Properties. In the report properties you can select the orientation as well as standard paper sizes and margins. Based on your paper size and your left and right margins you should be able to calculate the maximum width for the body of your report. Back in the report designer select the report body and look at the properties. The object drop down list should specifically say BODY, in this you want to ensure the size of your body (width) is not greater than the Report width minus the margins.
For PDF you have to change page settings while creating report check below steps for that :
if you have large data on page you should choose below option
->Right Click on report
->Click on Page Setup option
->Change page orientation Portrait to Landscape
->Click on OK
if you don't have large data on page you should reduce size of your table on report design page and change below setting:
->Right Click on report
->Click on Page Setup option
->Change page orientation Landscape to Portrait
->Click on OK
Now check PDF file.