Results 1 to 4 of 4

Thread: Landscape ??

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    10

    Landscape ??

    How do I set a report to print in landscape mode, I know the printer can change it but the report width is stuck at 8.5

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    Report.PaperOrientation = crLandscape

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    10

    Where ?

    but where do I put the paperorientation, niether the viewer object or the report class support it and where/what do I declare as "crLandscape"?
    I'm using VB.NET and the Crystal Reports Viewer component.

  4. #4
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    I am using VB6. I put the code in my VB just before I print the report. For example, here is the code that prints out 5 copies of a report to a printer selected prior.

    Report.SelectPrinter glbPrinterDriver, glbPrinterName, glbPrinterPort
    Report.PaperOrientation = crLandscape
    Report.PaperSize = crPaperLegal
    If glbPrinterDestination = 0 Then
    glbReportForm = "frmProduction"
    CRViewer.Show vbModal
    Else
    Report.PrintOut False, 5
    End If

    glbPrinterDriver, glbPrinterName, glbPrinterName, and glbprinterDestination are chosen in a routine that is executed earlier.

    glbReportForm is the name I pass the CRViewer. Its load routine would say:

    Select Case glbReportForm
    Case "frmProduction"
    CRViewer1.ReportSource = frmProduction.Report
    Case ...
    Case ...
    End Select


    CRViewer1.ViewReport

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