Adjusting Crystal Reports fields based on paper size - c#

I have a Crystal report which has invoice details. Iam adding data from sale datagridview to crystal reports using dataset. Currently i am setting it to A4 size. Now i am making a new form to customize crystal reports size, text etc. My problem is if i select any small size instead of A4 the size of paper shrinks and the data fields are going out of the border. How can i adjust data fields automatically upon paper size change? and ine more question.. is it possible to change crystal reports header and papersize from user input from a new form. Can someone help me with it?

Crystal report has a limit width only you can expand your width by:
In VISUAL STUDIO:
Goto > Crystal Reports > Design > Page Setup...>

Related

Rdlc report vertical barcodes

I have a problem in rdlc report in Visual Studio 2019 printing barcodes (2of5 or 3of9). In horizontal mode they are all OK, but in vertical property (WritingMode), the barcode does not show all bars correctly.
In design mode on screen, with a static barcode, all looks OK. But when is printed in PDF or on paper the barcodes have different struct. I try set DpiX and DpiY in DeviceInfo string to 1200 but nothing change. Is this an exist any bug? Any help?
Sample of barcodes:
sample2
From my experience, when something does not visualize on rdlc, it's usually a matter of size of the control placed on the report.
If the barcode you're trying to print is too big for the control size you set, then it will be removed by rdlc.
Try to test this by putting the barcode control in an empty area of the report and making it quite big and see if the barcode appears.
The elements you provided at the moment are insufficient to understand what actually is happening.

Fit RDLC report to A4 page in C# winforms

I have a question about fitting rdlc report to A4 page after print, after printing out the report it fills only half of the page in portrait mode, I already changed report properties --> page size to A4.
Tried to enlarge the table inside the report but still no luck.
Shortly, how to fit a report to A4 page after print out?
Thanks!
I found the solution, just change to A3 page size if you want to print it on A4, then it will fit the paper after printing it.

Blank space after each page when printing Crystal Report

Why I'm getting a gap/spaces after each page when I print the result of Crystal Report?
I need to print an invoice on roll paper, but crystal report using fix height and size. I tried using the minimum amount of height and make it get multiple pages. But the problem now after I attempted to print it, it creates spaces between each page.
I have tried setting the margin into zero to minimize the gap, but it doesn't affect the gap.

RDLC is clipped on next page in winform application

I have one long report which contains 8 tablix. Now when the report needs another page for the records, it is clipping the records. I have set the page size to A4.
The first few records are clipped when printing. How to prevent this behaviour. I am new to RDLC.
You need to set top/bottom/left/right margins according to your printer.
I usually use this settings and never had problems (Report > Report properties > Page setup):
left/right margin: 1,3cm
bottom/top margins: 1,5cm
This is not connected to your problem but remember you need to set maximum report width according to these margins.

Crystal Reports custom paper size width = 33 cm and height = 21.5 cm

I need custom paper size in Crystal Reports width = 33cm and height = 21.5cm.
I want this size to print an invoice only.
I added in the printer settings a custom paper size to add It in a report.
Put the maximum width size is 30.4cm.
So, how can I create a custom paper size by C# code, or any thing else?
Open your .rpt file. Right click, then select design -> page setup. You could use user defined size from your printer or custom your paper size. I hope it solves your problem.

Categories