Setting papersize in Crystal Report from Foxpro

Hi Friends,

i am using Crystal Report 9 + SP5 & Visual Foxpro 9 + SP1

All reports are created on "TVS MSP 355/XL Classic Printer", and the paper size used is 8" X 6", 210mm X 12" & 15" X 12".

When i deploy my reports & software to client's machine, the paper size turns into default printer's paper size. how i code so that the software will automatically set the papersize i required. "crxreport.papersize = " doen't work. and please tell me what is the value of for above mentioned paper sizes

Thanks in advance




Answer this question

Setting papersize in Crystal Report from Foxpro

  • Kunk

    It's fully documented in the help file.

    X and Y are the width and height of the page in pixels.



  • Jeremy Adamich

    and how many pixels in one inch

    please tell me what value i should use in...

    crxreport.setuserpapersize(x,y) && for 8" X 6"

    crxreport.setuserpapersize(x,y) && for 210mm X 12"

    crxreport.setuserpapersize(x,y) && for 15" X 12"

    Please tell me value of X & Y in pixels.

    Thanks



  • DaveHorner

    So what is the values of X & Y in

    setuserpapersize(x,y)

    for 8" X 6" & 15"X12" & 210mm X 12"



  • GregTech

    Papersize of 0 tells Crystal Reports to use the default size. Instead of .papersize, look at the crxreport.SetUserPaperSize method.

  • Setting papersize in Crystal Report from Foxpro