Re: Programmatically Set Crystal Report's printer setting

P

Peter Proost

A

Alphonse

I've tried that before.

Dim a As ReportDocument
a.PrintOptions.PaperSize = CrystalDecisions.[Shared].PaperSize.PaperA5

as u can see, I can't use my custom paper size. I can only use the
paper available from the CrystalDecisions.[Shared].PaperSize property.
Thx
 
P

Peter Proost

Hi Alphonse I see your problem, maybe it can be a solution to design your
report on the custom format? Then it automatically would be printed on the
right size. Maybe ths link can help you:
http://support.businessobjects.com/library/kbase/articles/c2010175.asp

Hth Greetz Peter




--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

Alphonse said:
I've tried that before.

Dim a As ReportDocument
a.PrintOptions.PaperSize = CrystalDecisions.[Shared].PaperSize.PaperA5

as u can see, I can't use my custom paper size. I can only use the
paper available from the CrystalDecisions.[Shared].PaperSize property.
Thx


Peter said:
Hi,

you can use the PrintOptions.PaperSize of the reportdocument to specify the
papaersize

Private crReportDocument As ReportDocument
...
crReportDocument.PrintOptions.PaperSize = PaperSize.PaperEnvelope10

if your not familiar with the ReportDocument you can have a look at
http://www.vb-tips.com/default.aspx?ID=68888abf-f137-45d1-8a81-e779bfb411c5
and
http://www.vb-tips.com/default.aspx?ID=f2d929bc-07bb-4e77-95d6-0565bbc98609

which are 2 examples on crystal reports

hth Greetz Peter
 
A

Alphonse

Hi,
Sorry, looks like my problem if I'm using crystal report viewer. If i'm
using the print button in the viewer, the paper always set to the
default (letter) although I've design my report using the custom paper
size.
But if i'm print it directly to the printer without preview it, it
prints with the correct papersize. Thx a lot Peter

Regards,

Alphonsus Eka


Peter said:
Hi Alphonse I see your problem, maybe it can be a solution to design your
report on the custom format? Then it automatically would be printed on the
right size. Maybe ths link can help you:
http://support.businessobjects.com/library/kbase/articles/c2010175.asp

Hth Greetz Peter




--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

Alphonse said:
I've tried that before.

Dim a As ReportDocument
a.PrintOptions.PaperSize = CrystalDecisions.[Shared].PaperSize.PaperA5

as u can see, I can't use my custom paper size. I can only use the
paper available from the CrystalDecisions.[Shared].PaperSize property.
Thx


Peter said:
Hi,

you can use the PrintOptions.PaperSize of the reportdocument to specify the
papaersize

Private crReportDocument As ReportDocument
...
crReportDocument.PrintOptions.PaperSize = PaperSize.PaperEnvelope10

if your not familiar with the ReportDocument you can have a look at
http://www.vb-tips.com/default.aspx?ID=68888abf-f137-45d1-8a81-e779bfb411c5
and
http://www.vb-tips.com/default.aspx?ID=f2d929bc-07bb-4e77-95d6-0565bbc98609

which are 2 examples on crystal reports

hth Greetz Peter



--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Alphonse" <[email protected]> schreef in bericht
Hi,
I have an application that need to print a report (Crystal Report)
using a custom paper size. The problem is, everytime I want to print
it, I need to go to printer properties & set the paper to the custom
paper size. Is there a way to print the report to a spesific printer
with a spesific papersize. So if I want to print my report, all I need
is to click a button, then It will print with the correct papersize(not
the default one), without have to set the printer paper.Thx

Regards,

Alphonsus Eka
 
Top