Crystal Reports printoptions不适用于asp.net应用程序

Crystal Reports printoptions不适用于asp.net应用程序,asp.net,printing,crystal-reports,Asp.net,Printing,Crystal Reports,仅打开rpt的简单.NET4.0应用程序。我只想强制使用风景画和A4纸,但我不能让它工作 我尝试在报表设计中从页面设置中删除打印机,但没有成功 资料来源: private void Page_Init(object sender, EventArgs e) { ConfigureCrystalReports(); } private void ConfigureCrystalReports() {

仅打开rpt的简单.NET4.0应用程序。我只想强制使用风景画和A4纸,但我不能让它工作

我尝试在报表设计中从页面设置中删除打印机,但没有成功

资料来源:

private void Page_Init(object sender, EventArgs e)
        {
            ConfigureCrystalReports();
        }
        private void ConfigureCrystalReports()
        {
            //
            ConnectionInfo myConnectionInfo = new ConnectionInfo();
            //
            ReportDocument rptDoc = new ReportDocument();
            rptDoc.Load(Server.MapPath(Properties.Settings.Default.rptPath));
            rptDoc.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
            rptDoc.PrintOptions.PaperSize = PaperSize.PaperA4;
            //
            myConnectionInfo.AllowCustomConnection = true;
            myConnectionInfo.UserID = "xxxxx";
            myConnectionInfo.Password = "xxxxx";
            //
            crViewer.ReportSource = rptDoc;
            //
            SetDBLogonForReport(myConnectionInfo);
        }

您是通过查看器在客户端打印,还是在服务器端打印?在aspx页面中,客户端在查看器旁边您是否将.rpt设计为横向(设计->页面设置:方向)?@nunzabar:是,我在CR designer的页面设置中尝试了带打印机还是不带打印机