Setting Page size in crystal report

Hi,
I have designed a report for cheque. I have set the page size as  3 inches breadh and 8 inches length. When I preview the report crystal report designer it is showing as per the dimension i mentioned above.  But when I open the report in my application it is showing in the A4 size. My application is developed in java. Please help me to display this report in my application as per the page size I mentioned.

HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
            HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
            CrystalReportViewer viewer = new CrystalReportViewer();
            viewer.setOwnPage(true);
            viewer.setOwnForm(true);
            viewer.setHasExportButton(true);
            viewer.setHasLogo(false);
            viewer.setDisplayGroupTree(this.isGroupRpt());
            viewer.setHasToggleGroupTreeButton(this.isGroupRpt());
            viewer.setPrintMode(CrPrintMode.ACTIVEX);
            viewer.setEnableLogonPrompt(false);
            ReportViewerResponse reportResponse =
                (ReportViewerResponse) request.getSession().getAttribute(
                    ReportServerConstants.REPORT_RESPONSE);
            if (reportResponse != null)
                viewer.setReportSource(reportResponse.getReportSource());
                viewer.processHttpRequest(request, response, pageContext.getServletContext(), null);

Similar Messages

  • Customise page size in crystal report

    Post Author: rameshkunkumalla
    CA Forum: Crystal Reports
    Hi
    We are using crystal reports in .net 2003 we want to print the page as 10inch * 4 inch page we are not getting he size even we are not abele to found the custom
    size

    HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
                HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
                CrystalReportViewer viewer = new CrystalReportViewer();
                viewer.setOwnPage(true);
                viewer.setOwnForm(true);
                viewer.setHasExportButton(true);
                viewer.setHasLogo(false);
                viewer.setDisplayGroupTree(this.isGroupRpt());
                viewer.setHasToggleGroupTreeButton(this.isGroupRpt());
                viewer.setPrintMode(CrPrintMode.ACTIVEX);
                viewer.setEnableLogonPrompt(false);
                ReportViewerResponse reportResponse =
                    (ReportViewerResponse) request.getSession().getAttribute(
                        ReportServerConstants.REPORT_RESPONSE);
                if (reportResponse != null)
                    viewer.setReportSource(reportResponse.getReportSource());
                    viewer.processHttpRequest(request, response, pageContext.getServletContext(), null);

  • 8x6 page size in crystal reports

    Hi All,
    I have created 8x6 page size for printing of voucher in crystal reports. While taking print when I select this size it takes as landscape. When I change it to portrait it changes size as 6x8.
    Is there any solution for this?
    Thanks & Regards,
    Sheetal

    Oh dear I fear you are having the same problem I have which is if you create a report where the vertical dimensions are greater than the horizontal dimensions it switches it automatically to landscape.
    Sadly I have not found a solution yet as you can read in my post Printing Problem
    Hopefully somebody can help us both out.

  • Move data from web page to a crystal report

    I am using Crystal Reports 10 and Dreamweaver to create an asp page.  I would like to know how to access a crystal report from the asp page and pass the data that is on the asp page to the crystal report.  Is this possible?

    <p>There is also a very specific sample found on the Diamond site that was originally written by some one in support that should be very useful.</p><p><a href="/node/494">http://diamond.businessobjects.com/node/494</a></p><p>This sample takes an ADO recordset and passes it to a report at runtime. The sample also displays the report in an ASP page. The only change you would need to make is to populate ADO recordset with data from the web form. Sorry I don&#39;t have a sample to do that. <br /></p><p>Rob Horne</p>

  • Exporting or Printing each page of a Crystal Report to a separate pdf file.

    Is there a way to export or print each page of a Crystal report to a separate pdf file?  If possible, I would look to use the family nunmber field in my report as the file name.  This is not required, but would be helpful.  Thanks

    Hello,
    Standalone CR Designer doesn't have the ability but CR Server or BOE does. Or if you have a .NET or Java you could write an app that would spit out one page at a time.
    Don

  • Setting page size in Numbers on Ipad?

    Anyone know if you can set page size in Numbers on Ipad?

    I don't see a setting for page size.  Everything else related to that (sans setting the page size) appears to be found here:
    Click the wrench
    Share & Print
    Print
    Select portrait/landscape, content size, page numbering, headers
    Done (don't actually print it)
    I wonder if you set the page size when you actually go to print it.  I don't have a printer to try it on. Otherwise it looks like 8.5x11 is all you get.

  • When printing from file, print or print preview, must set page size @ 40% to get correct printing. IE is ok only wrong on firefox!

    when printing from file, print or print preview, must set page size @ 40% to get correct printing. IE is ok only wrong on firefox! edit

    What happens when you select a scale higher than 40%?

  • How do I set page size to Super B -not on of choices an ac9pro

    How set page size as "Super B" (13x19") for  wide epson 1400 printer

    Menu > File > Page Set-up > Paper Size: Manage Custom Size > create your own
    Peter

  • Crystal Report 2008 doesn't set  page size when export to excel file

    Hi,
    I am using Crystal Report 2008 Developer edition.
    At Crystal report design time setting the below page setup:
    Page Options -
       to A3(297X420 mm)
    Orientation --- Landscape
    and using the following code in .net (c#)
    I am using below format options to export in excel in .net 2005
    ReportDocument oReport = new ReportDocument();
    oReport.FormatEngine.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    oReport.FormatEngine.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA3;
    if (aParamlist.ReportFormat == ReportFormatEnum.MicrosoftExcel)
    ExcelFormatOptions excel = new ExcelFormatOptions();
    excel.ExcelUseConstantColumnWidth = false;
    // Use detail section one as a guideline to determine column width
    excel.ExcelAreaGroupNumber = 1;
    //excel.ExcelAreaType = AreaSectionKind.Detail;
    excel.ExcelAreaType = AreaSectionKind.Detail;
    // Prepare exporting options
    ExportOptions export = oReport.ExportOptions;
    export.FormatOptions = excel;
    export.ExportFormatType = ExportFormatType.Excel;
    oReport.Export();
    when export to excel it doesn't set the Paper Size to  A3(297X420 mm).
    Is there any way to set the paper size while export to excel or in other formats also????
    Thanks & Regds,

    Hi,
    thanks for your email.
    This is not happening in development environment.It is setting the paper size anf paper orientation properly.
    this is happening in the production environment where only redist installation is done.
    thanks

  • Setting the page size of a report to 5.5height and 8.5 width(size-inches)

    Hi,
    I want to set the report's page size on a dot matrix printer(for PAYSLIP) to 5.5 inches height * 8.5 inches width. But i'm not able to define my own size through the printer(custom size or user defined size). Some how i cannot see the custom size in the printer settings. Is there any way where i can define the size for the report. The report output is genrated to a pdf format. Will the settings remain same once generated to pdf format. Please let me know if there's any solution for this. Its very urgent.
    Thanx.
    Anu.

    Someone plaese reply to this.

  • Unable To Print or Access Page Setup in Crystal Reports 2008

    I have Win 7 32 bit, and installed Crystal Reports 2008 last week (v12.0.0.683 from the Help window).
    Every time I open a report, and from the Preview tab clicking File -> Print, or File - > Page Setup, I immediately receive a Windows message that "Crystal Reports has stopped working".  After a few seconds, another Windows message displays "Crystal Reports has stopped working - a problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available".  Then Crystal completely closes.
    I downloaded sample reports from the BO website, and still receive the error, so I don't think it's the report.
    When I view the Event Log, I see the following:
    Faulting application name: crw32.exe, version: 12.0.0.683, time stamp: 0x47c8be9a
    Faulting module name: ntdll.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdadb
    Exception code: 0xc0000374
    Fault offset: 0x000c283b
    Faulting process id: 0x94
    Faulting application start time: 0x01cc1fc304e98ecd
    Faulting application path: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crw32.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: 3cfc99e6-8bb8-11e0-b8ef-00248122792c
    I have uninstalled and reinstalled CR 2008 multiple times and continue to receive the same error.  I tried updating to SP1 (Version 12.1.0.892 Incremental) but I receive the following error: "A BusinessObjects product at a lower patch level is detected.  The installation cannot continue.  Please update all installed products to the SP1 patch level, then restart this installation".
    Need to print my reports - any ideas?

    Sorry busy on Support cases and they take precedence over this community forum.
    Very interesting....
    In a test application I use I have this routine to get the local printers:
    private void frmMain_Load(object sender, System.EventArgs e)
         if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
              foreach(String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters )
                   cboCurrentPrinters.Items.Add(myPrinter);                         
              cboCurrentPrinters.SelectedIndex = 0;
         else
              rdoCurrent.Enabled = false;
              EnableDisableCurrentControls(false);
         //For printers exposed to System account as per MS Kbase
         //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
         //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
         Microsoft.Win32.RegistryKey mySystemPrinters =
              Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
         foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
              cboDefaultPrinters.Items.Add(defaultPrinters);
         if (cboDefaultPrinters.Items.Count > 0)
              cboDefaultPrinters.SelectedIndex = 0;
         else
              rdoDefault.Enabled = false;
    Note the MS Kabse on where the printer registry is. Now the odd part is on one of my test development PC's it won't populate the Default User Printer list, only the Local User Printers. I take this same app to another PC and it works just fine. The register keys are there but for some reason on my Windows 7 64 bit it won't show them, the other strange part is I have full access to both keys. I have not been able to figure out why this happens...
    I'm thinking this may be related to your issue.... But I don't have a solution, very strange... I've even gone into regedit32 and set full permissions on the various keys and it still doesn't work...
    I have other VM-ware images if I need to get past that part for testing so I never drilled into why, I believe it has to be some Windows/Firewall/Anti-virus configuration or something our IT department pushed into my local Profile.... What that is I don't know unfortunately.
    I'll do some looking and testing. You may want to post this on Microsoft forums as well.... Ask about printer permissions.
    Thanks
    Don

  • Setting fixed height in Crystal Reports sections

    Hi,
    I want to set the height of detail section in crystal report. I want to set the details section such that it must at the most accommodate 10 records in the section.
    If I have only 2 records in the section, it should show 8 empty lines.
    If I have more than 25 records in the section, the remaining 15 records will be placed on the next page.
    After that, the footer will be printed at the end of it.
    Is this possible?
    Thanks.

    Try this:
    1. You can also create a SQL expression field or use a subreport  to read how many records that it returns.
    2. Have 10 detail section; and
    3. In each section, put in all fields; and
    4. Have a running total in each section; and
    5. For each field in the section, you suppress based on the running total; and
    6. Do not suppress blank section; and
    7. Set new page if the running total is more than > 10

  • Export excel setting Page header once per report not working

    Hi All,
          I am having a java web application which creates the predefined template reports in pdf or xls or rpt format. I have a requirement where in case of XLS format, the page header should be displayed ONCE PER REPORT. I have Crystal Reports XI release 2 and Java 1.5.
        I am setting from java code
         formatType = IReportFormatOptions.CeReportFormat.EXCEL;
         reportFormat.setFormat(formatType);
         IExcelFormat formatExcel = (IExcelFormat)reportFormat.getFormatInterface();
         formatExcel.setExportPageHeaderFooter(IExcelFormat.CeReportExportHeaderFooterOption.ONCE);
    I have installed a patch named Excel Export patch which basically sets some registry entries
    Set HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal
    Reports\Export\Excel\PageAreaExportType to 0 for default behavior, 1 to display no page area, 2 to display page area once per report, and 3 to show the page area once per page.
    Set HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal
    Reports\Export\Excel\ColumnWidthBaseArea to 0 for default behavior, 4 for column width based on detail
    section.
    I have set PageAreaExportType to 2 and ColumnWidthBaseArea to 0 and 4.
    Still i see the page headers repeating on every page. Could you please help me in resolving the issue?
    Thanks in advance.

    Currently in our new version of java application, we are not using DHTML viewer. Predefined report templates are published on crystal server and from Java application, we send the report parameters to the crystal and also specify the format type.
    Exporting excel from the crystal template is working fine with the page headers repeating only once (have set the page header show once per report option before exporting it to excel). But the same is not happening from the Java application. i have attached the required files to the message that i posted. If you have the access you can take a loot at them.

  • How to set printersettings for the crystal report viewer in SAP BI dynamically

    Hello
    I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
    http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
    This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
    shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
    Thanks & Regards,
    Rajeswari.

    There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Setting page SIZE in INCHES?

    I want to work with inches. When I go to set the page size in the Inspector \ document \ page setup my choice is only in centimeters. The template I'm required to work with is in inches. The conversions make weird numbers and make it extra difficult for me to manufacture a 'print-ready' PDF.
    Is there a way I can set my page size in INCHES??
    Ben

    Sorry, I was looking at the margin boxes when I tried the change in Pages Preferences. My error.
    As for downsizing from Legal, those dimensions are not proportionate so there is no way to achieve that without adjusting or skewing things. If it’s a few pages it shouldn’t be a lot of work, but if there are many pages (as I suspect) I can see why you wouldn’t want to do that. However, if you’re willing to fill a little excess space on the sides with something, or you can live with larger margins, you can bring it down to 7.25 X 4.4. At the moment I can think of no way to reduce the mixed content except via PDF.
    Walt

Maybe you are looking for

  • Does Photoshop Elements work with Windows 8 Touchscreen

    Hi I'm able t use parts of the touchscreen for example, selecting a tool. But, when I try to say use the crop tool I cannot use my finger to expand or contract the crop tool.

  • Windows 7 driver for hp scanjet 4470c

    Does anyone know where I can download a driver for my hp scanjet 4470c?  My operating system is a 64 bit windows 7 one. I like it, it's a greater scanner and still works well but only on an xp system.

  • Using iPod as hard drive.. video of girlfriend accepting proposal will not

    Hi there, We've got an iPod photo, which we've used now for a while to store photos and video files when our 1Gb Compact Flash card in the digital camera gets full. We've just got back from a holiday, and I've copied all the files (mixture of photos

  • Using iWeb but not .mac

    Is it possible to building a website using iWeb but publish using a host other than .mac ? Could anyone recommend a good host to use ? Phil

  • Diferent Controlling Currency

    Hello Friends, My company code currency is INR and controlling area currency is USD. When I do planning thru KP26 then there i can maintain activity price only in USD and also when execute cost center assessment plan cycle then system showing result