cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Kudos

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.

-Dell

Former Member
0 Kudos

Unfortunately, what I'm actually designing is a single label, not the entire page.  If I insert margins in the report, then the automatically generated labels won't line up with the physical label on the sheet.

I design a label that gets replicated 40 times in a sheet, so the dimensions of this label are critical.

I need to defeat the auto-margin feature, one way or the other.

Is there any parameter I can set?

DellSC
Active Contributor
0 Kudos

Not that I'm aware of.  Did you use one of the standard label settings that come with Crystal when you designed the report?

-Dell

Former Member
0 Kudos

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?