Results 1 to 2 of 2

Thread: Paper Size, setuserpapersize

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2003
    Posts
    237

    Paper Size, setuserpapersize

    im using PIN printer to print a cash bill,

    the paper size is 8.5 inch x 5.5inch (half of normal fanfold size)

    so, the preloaded papersize in crystal report 9.2 doesn't have such paper size, so i need to set it myself

    VB Code:
    1. myReport.PaperSize = crPaperUser
    2. myReport.SetUserPaperSize length, width

    refer to the help file in crystal report, the length & width value is in pixel, 1 inch equal to 1440 pixels right?
    so 8.5 inch should be 12240 pixels & 5.5 is 7920, but end up not what i want.

    after few hundred tries, i found that 1335, 2100 nearly equal to 8.5 x 5.5 inch, why?

    anyway to change the scalemode of it to cm or inch?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    1 inch equal to 1440 pixels right
    Sorry that is incorrect.

    1 Inch = 1440 Twips. 1 Inch = 96 Pixels

    Typically there are 15 Twips/Pixel, but this may depend on the monitor, resolution and user settings.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width