Dissociate default printer driver from the report viewer

Hello,
I have a problem in reports visualization. I set the report paper size via the code:
_printOptions.PaperSize = CrPaperSizeEnum.crPaperSizePaperCsheet;
The problem is when i visualize it it's truncated to the printer default paper size. How could i resolve this. I tried the DissociatePrinter option and it didn't help.
I'm working with .NET RAS SDK and C#.
Edited by: Rahma Sayari on Feb 20, 2012 9:35 AM
Edited by: Rahma Sayari on Feb 20, 2012 9:44 AM

What version of CR?
What version of .NET?
WEB or Win app?
See KB 1386475 and 1490938 (use the search box in the top right corner)
Also note that the paper size enum may be (most likely will be) different for each printer driver. Thus retrieving the paper size enum and setting that to printOptions.PaperSize may be something worth trying.
Searching for 'printoutputcontroler' may also get you additional resources.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Similar Messages

  • I'm having trouble instaling a printer driver for my Canon MG5220. I downloaded the latest printer driver from the Canon website (10.67.1.0) and installed it on my Intel iMac. It said the installation was sucessful, but when I try to add a printer, no go.

    I'm having trouble instaling a printer driver for my Canon MG5220. I downloaded the latest printer driver from the Canon website (10.67.1.0) and installed it on my Intel iMac. It said the installation was sucessful, but when I try to add a printer, no go. The printer does'nt show up. I'm fairly new to the Mac, after switching from windows. I'm running Snow Leopard 10.6.8.

    Hold down the option key and select
     ▹ System Information...
    from the menu bar. In the window that opens, select
    Hardware ▹ USB
    from the list on the left. On the right you should now see a list of all connected USB devices, as well as some built-in components. Is the device shown?

  • Auto Installation of a Print Driver from the Server?

    Hi all,
    I hope this is the correct forum for this question. I am fairly new at setting up Mac Servers and was looking for some advice. I am trying to set up a Mac 10.6 Server as a print server. I am familiar with setting up printing services on W2k3 servers, but have some questions about this on a Mac server. On a Windows server, once I have installed the printer with the correct driver and shared it out, users just need to connect to the server's print queue and the correct driver is automatically downloaded from the server and installed on the workstation. On the Mac server, it seems that even after I have set up the print queue and installed the needed driver, when I connect a Mac workstation to the queue, it automatically tries to use the Generic Postscript Driver. I then have to manually download and install the needed driver for the printer. Is there any way to get the Mac workstations to automatically download and install the driver from the server, or do I have to pre-load the needed driver on each Mac that will be using the shared printer?

    tmcbride wrote:
    Hi all,
    I hope this is the correct forum for this question. I am fairly new at setting up Mac Servers and was looking for some advice. I am trying to set up a Mac 10.6 Server as a print server. I am familiar with setting up printing services on W2k3 servers, but have some questions about this on a Mac server. On a Windows server, once I have installed the printer with the correct driver and shared it out, users just need to connect to the server's print queue and the correct driver is automatically downloaded from the server and installed on the workstation. On the Mac server, it seems that even after I have set up the print queue and installed the needed driver, when I connect a Mac workstation to the queue, it automatically tries to use the Generic Postscript Driver. I then have to manually download and install the needed driver for the printer. Is there any way to get the Mac workstations to automatically download and install the driver from the server, or do I have to pre-load the needed driver on each Mac that will be using the shared printer?
    A Mac Server can distribute Windows print drivers (along with settings) to Windows clients. It does it exactly the same way as Linux Samba servers and (older) Windows servers. This is done by creating a special hidden share point (using SMB), it is special in that it uses the name print$ the drivers and settings are then loaded (from a Windows PC) in to this share, and subsequent PCs can then automatically download them.
    See http://www.techrepublic.com/article/techrepublic-tutorial-automate-desktop-print er-setup-with-samba/1053286 for some more information on how to do this.
    Note: My past experience has seen the associated .tdb databases for this function stored on this share often get corrupted meaning one had to re-upload (from a Windows PC) the drivers again. Also despite the automatic distribution of drivers and settings being something Windows has done for decades, Apple are still very poor at this in terms of the equivalent Mac (server) to Mac (client). Finally, I have not seen (yet) whether this approach is possible with Windows 7 clients.

  • InfoView not defaulting print settings from Crystal Reports XI

    I have a form/report created from Crystal Reports XI published to InfoView that has the print settings set for the manual tray when printed. When running the report in InfoView, it does not default to the manual tray when printing. I am publishing directly from Crystal Reports. I have the Process/Print Setup 'Set layout to: Report file default' and the Schedule/Format 'Use options saved with report' checkbox checked. I am not finding any other settings to tell InfoView to use the report page layout/printer settings. Anyone know of any other options I should check? Thanks!
    Edited by: Kelley Freelove on Oct 22, 2009 3:09 PM

    That would be the correct forum as this one is for SDK issues only.
    If you are not getting helped on the other BO forum you may want to consider creating a case if you have a valid support contract.
    Jason

  • Can't Print Landscape from Crystal Reports Viewer XI

    Post Author: conrad
    CA Forum: General
    Product: Crystal Reports Viewer XI, version 12.0.0.r130_v20070725 and
    Crystal Reports XI, version 11.0.0.1282
    Patches Applied: none
    Operating System(s): XP Pro SP2
    Database(s):
    Error Messages: noneSteps to Reproduce:
    Download and install Crystal Reports Viewer XI
    Open a Crystal Report that prints landscape.
    Save report with data.
    Open that report with Crystal Reports Viewer XI.  Report will display landscape.
    Click Print..OK
    Viewer will attempt to scale output to fit on portrait paper, with varying degrees of success.
    Checking the properties of the report from Viewer (File...Report Properties...) shows a "Page Orientation" of "Landscape" and a message "Page Orientation and size defined by the application (no page information set by report author)."
    Any ideas on how to get the report to print landscape?  It prints that way from Crystal Reports XI.

    Hello Glenda,
    as you refer to the legacy technology I recommend to post this query to the [Legacy Application Development SDKs|SAP Crystal Reports - Legacy SDKs; forum.
    This forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Legacy Application Development SDKs queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • How to set the default print format for the report

    Hi,
    In ALV report , i want to defalut specific print format and printer for background processing .
    Any clues!!!!!!!!!
    Regards
    Swatantra

    Hi
    Please check below code:
    DATA: PRIPAR TYPE PRI_PARAMS,
          ARCPAR TYPE ARC_PARAMS,
          LAY    TYPE PRI_PARAMS-PAART,
          LINES  TYPE PRI_PARAMS-LINCT,
          ROWS   TYPE PRI_PARAMS-LINSZ.
    DATA: val(1).
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LOCL'   " <--- Printer Name
        no_dialog              = 'X'
        immediately            = ' '
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *** Specifying the page formats
        pripar-linct = 65.
        pripar-linsz = 190.
        pripar-paart = 'X_65_132'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_archive_parameters  = arcpar
        in_parameters          = pripar
        no_dialog              = 'X'
    *      list_name              = 'Testing Purpose Only' "l_list
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc EQ 0.
      NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS pripar
      ARCHIVE PARAMETERS arcpar
      NO DIALOG.
    ELSE.
      write:/ 'Unable to create spool'.
    ENDIF.
    So now a spool is created with the required print parameters...
    The list that is created from here will be in the spool.
    Once the list is completed, close it with NEW-PAGE PRINT OFF.
    Hope this helps.
    Regards
    Eswar

  • Second Printed Page of a Report Is Corrupted As Well the Report View When Focus Is Returned To It

    I am having a problem with a report in Access 2010. The report detail has a linked subreport in it. I build a query dynamically for both the report and subreport. There is a form that builds the queries and then displays the report in Report View. Everything
    is displayed correctly. In this view I have a command button that will print the report using “DoCmd.RunCommand acCmdPrint.”The printed report’s first page is correct. The second page has #error for all the fields for next record detail and that is it. At
    this point, there are still multiple records to print. When focus is returned to the Print View, it is corrupted and usually freezes.
    If after the Report View is displayed, I right click on the header and choose to display the Print Preview, all pages are displayed correctly. If I right click again, and select print, all pages are printed correctly, and the Report View is not corrupted.
    To see if I had corrupted the database, I imported everything into an empty database. After compiling the code, the behavior did not change at all.
    Once I place the database into production, everything will be driven by command buttons on the forms and reports so the left-click drop-down menus or any ribbons will not be available.
    Does anyone know what is happening?
    Thanks, in advance.

    Hi Ray,
    I failed to reproduce this issue in my test environment (Access 2013).
    Steps:
    #1 Create a table with the attachment field, add multiple records
    #2 Create a report with the table
    #3 Click Print Preview of the report, it worked correctly
    Can you also reproduce this issue in a newly created database, if no, I will suspect that issue is related to the specific database file (data issue or database is corrupted). You could use the link below to compact and repair the database.
    Compact and repair a database
    If the methods above do not work, it would be helpful if you could share us a simple demo to reproduce this issue. Due to privacy issues, I will also suggest you submitting a professional support incident to get the 1-1 support service so that Microsoft
    engineers can work closely with you to resolve this issue.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Checking default printer before running a report

    Hi guys,
    I'm trying to run a report directly from a form on the Web. However, at form runtime, the only thing known is DESTYPE ('PRINTER') but DESNAME is not. What I would like the form to do first is to check the user's local machine's default printer before running the report, and maybe show a message like: 'Oops, wait a minute dude! Your default printer is 'X', please change your default printer to 'Y' before proceeding.' Or something to that effect. After the change, of course, 'Y' (the name of the printer) gets passed on to DESNAME, and the report printing proceeds from thereon. Well, I think you get the point. Any cool ideas?
    null

    I can't tell the exact solution.
    But just check the Oracle Reports Remote Printing Utility(ORARRP).
    U can download this from oracle website.
    Using this u can generate o/p to a file and then a double click on that file will display a popup with all the printers accessible for that m/c.
    Thx,
    Rgs,
    Raj

  • How do I find a printer driver from a vendor's install?

    I have a Brother P-Touch 2700 label maker. I downloaded and installed the OS X 10.5.x printer driver from the Brother site. It came as a .dmg file. The P-Touch Editor installed separately. When started, it claims the driver is not installed. It's not in the list of installed printers either.
    I'm guessing it's not where the Editor expects to find it. How do I find the driver? I've looked in Library>Printers>Brother. To confuse matters, I also have a Brother laser printer.
    The Brother support folks have not yet responded to my question.
    Any help appreciated.
    harv47

    Matt Broughton wrote:
    That seems to be a common error and seems to be mostly associated with HP printers.
    I found any number of people asking about it, for many different makes and models. No one seemed to have a solution, though.
    Try resetting the printing system. See http://docs.info.apple.com/article.html?path=Mac/10.6/en/14001.html
    I notice that item is for 10.6. I'm using 10.5.8. Also, it seems like a drastic solution.
    Try adding the printer when logged in to an administrator's account rather than your standard account.
    I tried that first. I even downloaded new copies of the editor and the printer drivers. But the printer didn't appear in the list. Oops. I just realized I didn't use the shown command suggested earlier, to fix the permissions. Gotta do that.
    Later,
    harv47

  • CR XI R2 Sp6 - How do you change the default printer used by the Viewer?

    CR XI R2 Sp6
    .NET
    VS2005, C++
    The app selects printer for the job as m_Report->PrintOptions->PrinterName = ss_Device;
    This works nicely for printouts to the printer, but is ignored by the viewer. There, the machine default printer is always selected when I hit the print button.
    Found this which is sortof similar:
    http://forums.sdn.sap.com/thread.jspa?threadID=1275149
    Is there any way to fix this? If no, then is it fixed in more recent versions of CR?

    All of that above can be changed at runtime, but you'd somehow need to figure out what the default printer driver is on each machine and then assign it to the report.
    Yes,but that is exactly what I do. The app normally uses the Windows default printer just as any C++/MFC app will do. On the file menu there is an option to select printer which calls CWinApp::OnFilePrintSetup(); which sets the application default printer setup.
    In the app there is a function to retrieve the default printer:
    CString CLpApp::GetDefaultPrinter()
         PRINTDLG     pd ;
         CString          printer("Failed") ;
         pd.lStructSize = (DWORD)sizeof(PRINTDLG) ;
         BOOL bRet = GetPrinterDeviceDefaults(&pd) ;
         if (bRet)
              // protect memory handle with ::GlobalLock and ::GlobalUnlock
              DEVMODE *pDevMode = (DEVMODE*)::GlobalLock(m_hDevMode) ;
              printer = pDevMode->dmDeviceName ;
              ::GlobalUnlock(m_hDevMode) ;
         return printer ;
    When I print, I do:
    void CSkrivDlg::StartReport(CLpReportJob^ jobb)
         jobb->SelectPrinter("",theApp.GetDefaultPrinter(),"");
         if(m_tillSkrivare)
              jobb->OutputToPrinter(1);
         else
              jobb->OutputToWindow("Fönsternamn", 0, 0, 200, 200, 0, NULL, NULL);
    This works correctly for OutputToPrinter(1);, but not for OutputToWindow() which are simply wrappers for the CR functions:
    bool CReportJob::OutputToPrinter(int nCopies)
         bool rc = true;
         try
              m_Report->PrintToPrinter(nCopies,true,0,0);
         catch (Exception ^e)
              TRACE("
    %s",e->Message);
              m_LastError = e->Message;
              rc = false;
         return rc;
    // OutputToWindow()
    // a,b,c,d = Fönsterkoordinater eller noll för default
    // style = flaggor för fönsterposition
    // window = fönster efter vilket vi dyker upp
    // child = rapportfönstrets handle om vi vill ha den
    bool CReportJob::OutputToWindow(CString Namn, int a, int b, int c, int d, int style, CWnd* window, CWnd **child)
         bool rc = 0;
         CString title="Dummy1";
         title = m_Report->SummaryInfo->ReportTitle;
         CFloaterDlg *Floater = new CFloaterDlg(NULL);               // TODO: Get window
         Floater->Create(IDD_FLOATER_DLG, NULL);
         if(Floater != NULL)
              m_Report->ExportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::PortableDocFormat;
              Floater->m_Viewer->ReportSource = m_Report;
              Floater->m_Viewer->Zoom(theApp.m_ScreenZoom);
              // Sätt fönsterrubrik från rapporten
              Floater->SetWindowText(title);
              // Puffa på så att den kan ändra storlek på Crystal-kontrollen
              Floater->Size();
              // Visa fönstret om det är stängt
              if(!Floater->IsWindowVisible())
                   Floater->ShowWindow(SW_SHOW);
              rc = true;
              if (child!=NULL) *child=Floater;
         else
              AfxMessageBox("Kunde inte skapa fönster för utskrift",MB_OK);
              rc = false;
         return rc;
    Floater is simply a dialog that holds the Viewer control.
    For some reason does the Viewer not obey the printer selection done in the report

  • Printing from Crystal Reports Viewer

    I have an issue with a customer demanding to print Post Script from Crystal Report Viewer.  When we print using the PS driver we get the form, but the data is blank.  If we use PCL the report prints fine.  Is there any recommendations for using PCL or PS.  Customer says that Crystal reports are Post Script driven and the PS driver should work.  Any help with this would be appreciated.

    Thank you Mariellen for posting the solution.
    Also note that we have only tested the Zebra Printer with the Zebra Print Drivers. I worked with their developers and they said all drivers use the same under laying code so they should all work.
    The other requirement is you must define your paper size in the driver config tool for each size you are going to use, have a separate Printer defined on your PC.
    Thank you
    Don

  • How to print directly to Printer from Crystal Report Viewer ?

    Hi All,
    We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
    Now there is new requirement :
    Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
    So I am looking at  Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
    Thank you very much,
    Krist
    Indonesia

    Hi,
    It can't be achieved through XI.
    JRCXI R2 SDK offers the ability to print the report server side
    using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
    Here is the code(for XIR2):
    import="com.crystaldecisions.reports.sdk.*"
    import="com.crystaldecisions.sdk.occa.report.lib.*"
    import="com.crystaldecisions.sdk.occa.report.document.*"
    try {
    final String REPORT_NAME = "Inventory.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    //Create and set print options.
    PrintReportOptions printOptions = new PrintReportOptions();
    //Note: Printer with the 'printer name' below must already be configured.
    printOptions.setPrinterName("
    10.10.45.220
    BOBJ 2C");
    printOptions.setJobTitle("Sample Print Job from JRC.");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //NOTE: If parameters or database login credentials are required, they need to be set before.
    //calling the printReport() method of the PrintOutputController.
    reportClientDoc.getPrintOutputController().printReport(printOptions);
    reportClientDoc.close();
    out.println("Successfully sent report to the printer.");
    catch(ReportSDKException ex) {     
         out.println(ex);
    Please revert in case you have any query.
    Thanks,
    Neeraj

  • HT6114 Hello, I just updated from os 10.7.2 to os 10.9.2 and now I can't print to my HP 8600 plus printer.  I've downloaded the new driver from the hp site and still no printing.

    help!

    Did you run the installer for the driver from the downloads folder?
    Is the printer wifi or wired?
    Are you certain the printer has joined the wifi network if its wireless?
    If you go to sys prefs and the print and scan page is the printer red or green lit?

  • How can i find the option to delete a recent print job from the "View Job History

    1. Photosmart 5510 e-ALL-IN-ONE SERIES
    2. Window 7 64 bit
    How can i find the option to delete a recent print job from the "View Job History

    Hello alfmswongg,
    Currently there is no option to delete print jobs from the "View Job History" section of ePrintCenter.  
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • I'm trying to have the end times shows up when I print my calendar from the month view. As of now, when I print in the monthly view, it only gives me the start time of a meeting.

    I would like to have the ending times shown on my monthly calendar.  As of now, it only shows the start time.  The end times show up on the weekly calendar, but I don't want to print from the weekly view.

    Hi,
    I see two issues,
    1. the url is not correct for the image, www.mountjay.com/Home/MountJayDesign.jpg
    2. meta property should go in to head section, at the moment, it is under body (if you insert the code as html). go to page properties-> Metadata-> head. Paste this here, and check the site again,
    Please let me know if you have any other query.

Maybe you are looking for

  • How can I move my mp3 songs back into iTunes?

    Can you help me??? I accidently moved a group of MP3 files (songs) from my iTunes to the trash.  After doing a little research, I saw the suggestion of creating a folder on my desktop and dragging them from the trash to the new desktop folder.  So, I

  • Messages application crashes on launch

    *** Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault for '0x6d00004b <x-coredata://DAA5DDFB-3506-4BC8-8A28-44DAA42DB61E/ABCDContact/p436>'' terminating with uncaught exception of t

  • I have an ipod touch 4th generation with a broken digitizer. can it connect to itunes?

    i have an ipod touch with a broken digitizer. can it still connect to itunes?

  • Issue using Letters

    I am currently using PCM 14 and BI Publisher 11g. The issue i am having, is with BI Publisher. I am trying to create a letter for a project, but when i press create letter, i recieve an error. oracle.xdo.webservice.exception.OperationFailedException:

  • Planning 11.1.2.1 validatedata.js

    I'd like to customize all data forms to prevent users from entering numbers with decimal. I want to do that with ValidateData.js. var PRECISION_LIMIT = 0; function limitPrecisionForForm(Form1) {      for (row=firstDataRow; row<numRows; row++) {