Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 17th, 2006, 04:15 AM
Registered User
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report Orientation = Landscape in asp

I want to display crystal report in landscape orientation in asp pages.

Cannot display report in Landscape orientation. Anyone got solution, please help... tq :)

My code as below:
Sub Window_Onload
    'msgbox "try"
    'On Error Resume Next
    Dim webBroker
    Dim printerSettings

    Set webBroker = CreateObject("CrystalReports10.WebReportBroker.1")
    Set printerSettings = CreateObject("CrystalReports10.CRPrinterSettings")

    if ScriptEngineMajorVersion < 2 then
        window.alert "IE 3.02 users on NT4 need to get the latest version of VBScript or install IE 4.01 SP1. IE 3.02 users on Win95 need DCOM95 and latest version of VBScript, or install IE 4.01 SP1. These files are available at Microsoft's web site."
        Dim webSource
        Set webSource = CreateObject("CrystalReports10.WebReportSource.1")
        webSource.ReportSource = webBroker
        'webSource.URL = "RDCrptserver10.asp"
        webSource.URL = Location.Protocol + "//" + Location.Host + "/scrreports/RDCrptserver10.asp"
        webSource.PromptOnRefresh = True

        CRViewer.ReportSource = webSource
    end if
    printerSettings.PaperOrientation = 2
End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report Changing Orientation garrysmith68 Beginning VB 6 0 June 6th, 2006 06:42 AM
Report Orientation Problem echovue Access 1 January 11th, 2005 01:35 PM
Data Report: Orientation blackdevil1979 Beginning VB 6 1 September 9th, 2004 11:57 AM
Landscape report format chinhow Crystal Reports 3 April 4th, 2004 10:56 PM
Command Button to Print in Landscape Orientation brlevy Access 3 June 9th, 2003 11:59 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.