Results 1 to 4 of 4

Thread: Crystal Display in Page Width

  1. #1

    Thread Starter
    Lively Member adBSTRD's Avatar
    Join Date
    Oct 2003
    Posts
    116

    Crystal Display in Page Width

    Hi, I want the report to show in Page Width. I can use the crviewer's zoom property and set it to 100 but it does not do exactly what I need. Is there a constant that represents the 'Page Width' option?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    From the help file.

    ZoomLevel

    The zoom level to use to view the report As Integer. Indicate a percentage, or use 1 to fit the entire width of the page in the Report Viewer window (but not the entire page) or 2 to fit the entire page in the window.
    So -

    CRViewer.Zoom 1 'for page width

  3. #3

    Thread Starter
    Lively Member adBSTRD's Avatar
    Join Date
    Oct 2003
    Posts
    116
    Hey brucevde long time no see!
    MUCHAS GRACIAS AMIGO ! !

  4. #4
    Addicted Member myrrdan's Avatar
    Join Date
    Nov 2002
    Location
    Alberta Canada
    Posts
    202
    I have a problem with the zooming..

    VB Code:
    1. Function ViewCrystal(strPath As String)
    2.  
    3. frmMain.crvEnroll.Visible = True
    4. strPath = App.Path & "\files\" & strPath
    5.  
    6. 'this is the problem, the change of left & top values works.
    7. 'but the zoom does not
    8.  
    9. frmMain.crvEnroll.Top = 60
    10. frmMain.crvEnroll.Left = 4
    11. frmMain.crvEnroll.Zoom 1
    12.  
    13. Set objCrystalApp = New CRAXDRT.Application
    14. Dim objReport As CRAXDRT.Report
    15. Set objReport = objCrystalApp.OpenReport(strPath)
    16.     frmMain.crvEnroll.ReportSource = objReport
    17. frmMain.crvEnroll.ViewReport
    18. Set objReport = Nothing
    19.  
    20. End Function
    Oooops.....theres another semi-colon in the wrong spot....

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