Results 1 to 2 of 2

Thread: how to change paper size

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Location
    India
    Posts
    37

    how to change paper size

    Hi,
    I am using crystal reports from VB.
    Now what can I do to change paper size in runtime.
    (ie) i want to take printout on a A4 size paper but i have designed the report for A3 size paper
    Is it possible to change ?

  2. #2
    Addicted Member
    Join Date
    Jan 2001
    Location
    MPLS
    Posts
    187
    Sure you can change the paper size before printing, if you're using the runtime library. It would look something like this...

    Code:
    Dim rpt As CRAXDRT.Report
    Dim myapp As CRAXDRT.Application
    
    Set myapp = New CRAXDRT.Application
    Set rpt = myapp.OpenReport("myreport.rpt")
    rpt.PaperSize = crPaperA4
    rpt.PrintOut
    If you haven't done so already, I suggest downloading Crystal's RDC browser to get all the info you need on the runtime library. Got to support.crystaldecisions.com/docs and search for rdc8_browser.exe

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