Skip to Content
0
Former Member
Mar 14, 2011 at 05:24 PM

Bug in setting PaperSize in CR Developer 2008

25 Views

The PaperSize does not get set correctly using Page Setup in CR Designer when there is another PaperSize with the same height and width defined later on in the list. For the Brother label printers that we are using, this means that by default you cannot set these sizes using Page Setup: 1", 1 1/2", 1" x 2, and 1" x 3. The work-a-round is to set the PaperSize by printing to the correct size in CR Designer.

Using the .NET API, the PaperSize can be retrieved:

(int) reportDocument.ReportClientDocument.PrintOutputController.GetPrintOptions().PaperSize

A Brother PT-9700PC supports the following sizes by default:

256 [PaperSize User Defined Size Kind=Custom Height=394 Width=142]
257 [PaperSize 1/4" Kind=Custom Height=394 Width=23]
258 [PaperSize 3/8" Kind=Custom Height=394 Width=35]
259 [PaperSize 1/2" Kind=Custom Height=394 Width=47]
260 [PaperSize 3/4" Kind=Custom Height=394 Width=71]
261 [PaperSize 1" Kind=Custom Height=394 Width=94]
262 [PaperSize 1 1/2" Kind=Custom Height=394 Width=142]
263 [PaperSize 9/64" Kind=Custom Height=394 Width=13]
279 [PaperSize 1/2" x 2 Kind=Custom Height=394 Width=94]
280 [PaperSize 3/4" x 2 Kind=Custom Height=394 Width=142]
281 [PaperSize 1" x 2 Kind=Custom Height=394 Width=189]
282 [PaperSize 1 1/2" x 2 Kind=Custom Height=394 Width=249]
285 [PaperSize 1/2" x 3 Kind=Custom Height=394 Width=142]
286 [PaperSize 3/4" x 3 Kind=Custom Height=394 Width=212]
287 [PaperSize 1" x 3 Kind=Custom Height=394 Width=283]
288 [PaperSize 1 1/2" x 3 Kind=Custom Height=394 Width=356]
291 [PaperSize 1/2" x 4 Kind=Custom Height=394 Width=189]
292 [PaperSize 3/4" x 4 Kind=Custom Height=394 Width=283]
293 [PaperSize 1" x 4 Kind=Custom Height=394 Width=378]
294 [PaperSize 1 1/2" x 4 Kind=Custom Height=394 Width=462]

In the CR Designer, if you try setting the PaperSize to be 261 using Page Setup, it ends up setting it to 279, because both are 394 x 94. That doesn't work.

I first noticed the problem three weeks ago, but wasn't sure what was happening:

using-crystal-reports-2008-sp3-with-the-brother-95

Can we get this fixed in the next Fix Pack?