Skip to Content

Report gets resized no matter what... What am I doing wrong?

Hi everybody.

I'm using CR for VS 2013, I've downloaded and installed the latest Patches, so my system should be pretty up-to-date,

My app needs to print labels on a A4 labels sheet; they are arranged in a 4 x 10 pattern, no borders or margins, so I need to use all the available space on the sheet, I manage the no-print area of the printer by offsetting the fields on the labels.

I've created the report with no predefined printer and I've checked the "dissociate page/printer" option. It looks perfectly ok when I preview it, all the labels are in the exact position where they should be.

However, when I print it the report gets resized with approx 0.5 cm on each side. This changes the placement of the individual labels within the sheet, so thay don't align anymore with the physical lables etched on the sheet.

This happens no matter whether I print from the preview or I print it from code by using the PrintToPrinter method (actually this is the method I need to be using).

This is the code I use:

Can anybody point me in the right direction for solving this issue?

Code.JPG (60.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 12, 2015 at 03:48 PM

    The issue is that when you send it to the printer, Crystal "knows" about the no-print zone and automatically adds it when you set the margins to 0 - even if the report is designed for no printer. I would set the margins to 0.5 cm and design the report from there rather than trying to account for the area in the report itself.


    Add a comment
    10|10000 characters needed characters exceeded

    • Unfortunately I'm based in Europe, Avery only has US sized labels... I've tried to find something that would be similar to my layout (4 labels per row, 10 rows on a A4 sheet) but I couldn't find anything. I made some tests by playing around with margins and different label sizes, but I couldn't find any combination that would fit within the physical layout of the label sheet. By adding some spce between the columns I get to have the labels evenly spaced horizontally, but I couldn't find a way to do the same vertically.

      Trying some lateral thinking, if I understand you correctly Crystal resizes the page because of the no-print area of the printer. Is there a way to cheat it and make it think that the printer has a larger sheet?

      In other words, how can I set it up so that it thinks that it's going to print on a legal-sized sheet (this formati is supported by my printer, even if I don't physically have it available)? Do you think it would work?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.