Setting paper size programattically

I have used three types of paper for my whole reports.

1. Fanfold 15" X 12"
2. Fanfold 210mm X 12"
3. 8" X 6"

Some printer support & some does not support that paper size. How i change paper size as above programatically.

Thanks
LVL 1
Javid AnsariAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

peter57rCommented:
Hi intel4,
Are you using a VB or other programmed front-end to your reports?

(You can't do this from within CR).

Pete
Javid AnsariAuthor Commented:
I am using Visual Foxpro 9
Mike McCrackenSenior ConsultantCommented:
This shows how to select different printers.  It may give you some help in other settings.

http://www.experts-exchange.com/Databases/Crystal_Reports/Q_20762547.html

mlmcc

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Javid AnsariAuthor Commented:
noooo,
Actually in my organization, there is so many types of printers. And i want to print following report on specific paper size. Either printer support or not support that paper size. Report must be ....

1. ROLL_CALL on 210mm X 12'
2. DAY_BOOK on 15" X 12"
3. FEE_RECEIPT on 8" x 6"

Thanks
Mike McCrackenSenior ConsultantCommented:
Crystal is heavily dependent on the printer driver so what you are trying to do may or may not be possible and if it works may not look good.

http://support.businessobjects.com/communityCS/TechnicalPapers/scrprinterdependency.pdf.asp

Paper size -  These may apply even though they are for earlier versions of CR.

http://support.businessobjects.com/library/kbase/articles/c2009578.asp

http://support.businessobjects.com/library/kbase/articles/c2002244.asp

mlmcc
Javid AnsariAuthor Commented:
Can i use crxreport.setuserpapersize(x,y) method to solve me problem? if yes please tell me what value of x,y should be for ...

1. Fanfold 15" X 12"
2. Fanfold 210mm X 12"
3. 8" X 6"
vidruCommented:
Using this KB article as a reference point (http://support.businessobjects.com/library/kbase/articles/c2013761.asp), the calls would look something like this:

1) Report.SetUserPaperSize 15, 12
2) Report.SetUserPaperSize 8.267, 12
3) Report.SetUserPaperSize 8, 6

-dave
Mike McCrackenSenior ConsultantCommented:
Split  mlmcc (14388410)  &  vidru (14397639)

mlmcc
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.