Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports and Setting User Specific Paper Sizes

Status
Not open for further replies.

PCSAARON

Programmer
Jul 9, 2002
131
US
Does anyone know how to programically set the User size of a document? Some Label printers need to set specific parameters or paper sizes. I know how to choose the paper size, but if it is a USER size, how are they accessed?

This is what I use for the papersize:

Public Sub SetPaperSize(PaperSize As Integer)
crxrpt.PaperSize = PaperSize
End Sub

Thanks in advance..

Aaron
 
Sorry, I always forget to list what versions I have.

Crystal Reports 8.5. Visual basic 6.

Thanks again.

Aaron
 
Look under [File] on your menu. [Printer Setup] lets you choose paper and [Page Setup] lets you set margins.

Madawc Williams
East Anglia, Great Britain
 
When you print this from a different computer, these settings will be reset. (I already tried that...) I need to do this via coding at runtime. That is the issue. I looked on Crystal's website, and they list that version 8 needs a hot fix to set the user paper size. However it fails to mention HOW to set the width and height of the user paper size.

Right now as it sits, the user has to go into the print properies EVERY TIME they print a label and adjust the paper size. This is a waste of time.

So if anyone knows how to set the height and width of the printed copy via coding, please share... Thanks in advance...

Aaron
 
I think this is what you're looking for:

faq149-346



Lido
Development & Reporting
UK
 
The coding that is in FAQ149-346 is what I have already with many more additions... It still doesn't help with the dilema of setting a CUSTOM paper size at runtime. As an example, I have a CUSTOM label size that the report needs to adjust the height and width to. So, a 1"h x 1.5"w is not one of the options in the printer's or crystal report's default size list. So, what needs to be done to send that into the report at runtime? Thanks for all your input, but the issue still remains. Is there a special function? Is there a command I don't see? Thanks again...

Aaron

 
Just wanted to submit that I am still looking for a solution to this problem? I am back to this problem once again. Thanks.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top