How to hard code a printer in a report using Crystal 2008

Up through Crystal 10 you could save the Printer you wanted to use in the report itself.  Since Crystal 11, this feature is no longer working.  At print time, the default printer is being used.  We have a report that prints to a specific printer utilizing a 11X17 papersize.  How can I get this to save with the report so it always uses this printer and not the default printer?

Hi Kelly,
What runtime are you using and what Development language?
If you design a report off of say the HP 4050 laser printer then as long as the end user has that printer installed then you can get the Printer info and the runtime will use the printer settings as saved in the report. In which case don't check the No Printer option on.
If the Printer the report was designed against is not available then CR defaults to the default printer.
Other option is to define a default printer with that paper size then CR will us it.
Don

Similar Messages

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

  • How to view multiple reports using crystal reports 2008

    Hi ,
    I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
    For this , i am making use of Interop Form Wrapper class in vb6.
    I have a business requirement where in i need to view multiple reports  on my screen.
    please suggest me as to how this can be achieved.
    Thanks in Advance
    Regards,
    Ramnath

    Hi Ludek,
    I  am directly now using crystal report viewer control in my vb6 project.
    As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
    I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
    Please find below the code that iam using to load and generate reports.
    Note:
    1. frm is the instance of my Interop Wrapper Class built over CR viewer control
    2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer   properties defined in my Wrapper class
    Say for e.g   frm.DisplayToolbar(True) will internally  execute  crystalreportViewer1.DisplayToolbar = True
    frm.SetReportSource(strRptFilePath,0)          
    frm.SetSelectionFormula(strrecordSelectionFormula)
    frm.DisplayToolbar(True)               
    frm.ShowExportOption(True)
    frm.ShowPrintOption(True)
    frm.ShowRefreshOption(True)
    frm.ShowPAgeNavigateOption(True)
    frm.ShowZoomOption(True)
    frm.ShowParameterPanelOption(True)
    frm.Show()
    Thanks in Advance
    Regards,
    Ramnath

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • How to set DbConnections when scheduling a crystal report using Crystal Reports Server Java SDK?

    Post Author: Manjula
    CA Forum: JAVA
    Hi,
    Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:&#91;Database Vendor Code:6550&#93;.
    Would be thankful if someone could answer my point as applicable.
    Here is the code attached.
    ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
    for(int i=0; i<dbLogonSize; ++i) {
    IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
    dbLogon.setDatabaseName("DBname");
    dbLogon.setUserName("usrname");
    dbLogon.setPassword("pwd");
    Thanks in advance.

    Post Author: Manjula
    CA Forum: JAVA
    Ted,
    Thank you for your valuable information.
    First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
    On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
    And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
    So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
    Would be greatful if you answer my question and provide me some guidance.
    Thanks in advance.

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
    For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
    printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
    or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

    Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

  • How to hard code values in drop down by index

    Hi everyone
    I hav a node containing 2 attributes ie value n key. I am using drop down by index.  Value attribute is bound to my drop dwn box. In key I am providing key value for the value.  I need to hard code 3 value..Can anyone help me how to do so.
    Thanks
    Jaspreet Kaur

    Hi,
    Example for Data Binding of the DropDownByIndex UI Element:
    Procedure at design time:
           1.      Create a view with the name TestView.
           2.      Insert the DropDownByIndex UI element as a container child of the TestView view. (Step 1)
           3.      Create the context structure, as described in step 2.
    Create the context node X with the cardinality 0..n. Insert the value attribute y of the type String into this node. Then perform the data binding of the DropDownByIndex UI element in the Properties window of the View Designer. The texts property must be bound to the value attribute y with the context path description TestView.X.y (step 3).
    The context path TestView.X.y describes the attribute y in the context node X of the view context of the TestView view.
    You can fill the context with test data using the following controller implementation.
    public void wdDoInit()
        //@@begin wdDoInit()
       String[] letters = new String []
       {"A", "B", "C", "D"};
    //Create context elements for the node "X"
       List nodeElements = new ArrayList();
       for (int i =  0; i <letters.length; ++i)
          IPrivateTestView.IXElement xElement = wdContext.createXElement();
          xElement.setY(letters<i>);
          nodeElements.add(xElement);
    //Bind node element list to the node
       wdContext.nodeX().bind(nodeElements);
    //Set node’s lead selection which determines the selected item
       wdContext.nodeX().setLeadSelection(1);
        //@@end
    Regards
    Ayyapparaj

  • How to hard code a records at the end of file

    Hello experts,
    I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
    For example with IDOC to File,the o/p file like
    1 name number sal
    2 name number sal
    3 name number sal
    But my expected file is
    1 name number sal
    2 name number sal
    3 name number sal
    1 abc    123   2345676
    2 bdc     234 11111111
    3 aaa     123 11111111
    4 fffff       567 33333333
    Every time these 4 records are common.How can i hard code the last 4 records in XI.
    could u plz help me in this.Thanks in advance.
    Regards,
    KP

    Hi,
    Hope u are doing File Content Conversion in ur receiver adapter.
    Lets assume that u have structure like below
    -Record
      -RecordSet
        X
        Y
        Z
    Add one more Recordset like for Trailer records
    -Record
      -RecordSet
         X
         Y
         Z
      -TrailerRecordSet
         Trailer
    In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
    In ur Receiver communication channel add the TrailerRecordSet also...
    RecordSetStructure:  RecordSet,TrailerRecordSet
    TrailerRecordSet.fieldSeparator -
    '0'
    TrailerRecordSet.endSeparator -
    '0'
    RecordSet Parameters....
    Regards,
    Sudharshan

  • How to hard code the values in XI for the synchronous scenario?

    Hi All,
    Actual Scenario : Webservice - XI - Any of the Receiver Adapter(RFC/JDBC) .
    The receiver adapter setup will take some more days to complete. So, time being I would like to hard code the response values in XI according to the webservice request and send the response back to webservice. Is it possible?
    If it is possible, could you please tell me how to go about for this?
    Regards
    Sara

    Hey
    >>So, time being I would like to hard code the response values in XI according to the webservice request
    if ur response is based upon the request,then how can u hard code any value?when u hard code any element.it will always display the hard coded value irrespective of the request.
    in case u want to hard code something which does not depends on response or which will always stay the same in ur scenario,then just use the constant function of message mapping to do that
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Printing a Web Report Using Firefox Results in Lost Session Variables

    Post Author: AVXFlyer
    CA Forum: .NET
    I'm  having a problem with Firefox users printing a Crystal Report from a web site. 
    The first page of the web site collects information to be used in the report generation, for example, start date, end date, type of report etc.  These are all various text boxes, drop down lists, radio buttons and check boxes.  When the user clicks to show the report, everything works fine and the first page of the report will display. The code behind this page takes care of saving al the session variables into hidden fields on the page so the settings will be accessible when the user clicks to view the next page of the report.
    On clicking to view the next page of the report, everything is still fine and the process works beautifully and I've had no problems. 
    A new problem has surfaced during the printing of these reports.  Users who use IE6.0 or IE 7.0 do not have a problem, however, users who use Firefox do have a problem.
    It seems that the print dialog which appears as part of the the Crystal web control manages to 'lose" the variables which were present on the calling page.  It only does this with the Firefox browser.  Calls on postback to retrieve the variables from the hidden fields result in 0's or empty strings ("").
    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init .... ....  If Me.IsPostBack = False Then ... ...        strDiscontinuedOnly = Request.Form.Item("ddlInvStatus")             If strDiscontinuedOnly = Nothing Then                 isDiscontinuedOnly = False             Else                 Select Case strDiscontinuedOnly                     Case 0 'All Inventory                         isDiscontinuedOnly = False                     Case 1 'Discontinued Inventory                         isDiscontinuedOnly = True                     Case 2 'Active Inventory                         isDiscontinuedOnly = False                 End Select             End If Else 'Postback is true             intRequestedReport = Request.Form.Item("fldReportID")             strDiscontinuedOnly = Request.Form.Item("fldInvDiscItemsOnly")             isDiscontinuedOnly = Request.Form.Item("fldInvDiscItemsOnly") ... ... end if

    Can't explain it, but here are a few tests;
    1) Try to print a saved data report
    2) Try to print a report that is not using parameters
    3) Try a different printer driver as "default"
    4) Enable the option "Dissociate Formatting Page Size and Printer Paper Size" on the report
    5) What format do you export to?
    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]

  • How to add a new record in updatable report using apex_item

    Hi,
    i am using an updatable report using the following select
    select
    aPEX_ITEM.POPUP_FROM_QUERY(2,emp_code,
    ' SELECT emp_surname, emp_code FROM hrm_employee ' ,null,null,null,null,null,'onchange="f_set_multi_items_tabular(this.value ''#ROWNUM#'''
    || ')"',null,null,null) PF_No,
    apex_item.text (32,
    NULL,
    80,
    100,
    'style="width:190px" ',
    'f11_' || '#ROWNUM#'
    ) Name,
    " REST_DATE",
    "REMARKS",
    from "roster"
    when i click on the button add row , only the column rest_date and the remarks are enable.
    why is the apex_item.text and apex_item_popup_from_query is disable ? and how i can make it enable.
    thanks
    regards
    jerry

    I could see that you are using the addRow() function to generate new blank row.
    I guess, this function(used by the builtin tabular form s) , identifies editable columns when they are marked so at the report column attributes.
    When you use apex_item API, it expects the columns to be standard report column and hence render the new rows as such.
    Some one from the development team might be able to give a better answer on that.
    As for avoiding this issue
    <li>One method , would be to define the columns editable(and display types) in report column attributes.
    <li> You can duplicate the last row using jQuery( *$('tr.highlight-row:last).after( $('tr.highlight-row:last).clone() )* ) and removing the field values, but events(for example datepicker) would remain attached to the original row , so it isn't very straightforward either.
    <li>If you want to use apex_item you would have to use a pseudo union to DUAL for generating a blank row and re-render the report either by a page load or a Dynamic Action. Sounds like a nice idea for a plugin.
    Now , if you want to add rows multiple times without saving them, then you would need to store the values in a collection at load and update the collection before adding the row.

  • Printing parameter on report - using dynamic parameter in XI

    Post Author: jackel
    CA Forum: Formula
    I need to have the following print on the report when using parameter that accepts multiple values:
    1 value selected - prints that value
    2 or more values selected - prints "multiple"
    All values selected - prints "all"
    Example: parameter "Colors"
    Values- blue, green, red, yellow, etc (more may be added/deleted at any time)
    When just blue is selected - "blue" prints
    When just red is selected - "red" prints
    When red and yellow are selected - "multiple" prints
    When all are selected >> "all prints
    Any help would be appreciated.
    - j

    Post Author: jackel
    CA Forum: Formula
    I reduced the formula to (I didn't expect a solution for "all"):
    If count({?parameter}) = 1 or then {?parameter}    
    else
    If count({?parameter}) > 1 then 'Multiple'
    and received this error:  "This array must be subscripted.  For example: Array&#91;i&#93;."
    If count({?parameter}) = 1 then "One"
    else
    If count({?parameter}) > 1 then 'Multiple'
    works fine but I really wanted the value printed when only one is selected.
    Thanks so much for your help - I feel we're on the right track.
    -j

  • Printing Chart on report using ActiveX on Machine without Crystal installed

    When using a chart in a report, the chart does not print when running the report on a machine that does not have crystal reports installed on it. It will print on a machine that DOES have crystal installed. I am using VB6 to print the reports using ActiveX. Is there a DLL that needs to be copied onto the machines? I am using Crystal reports 10.
    Thanks

    There is no one DLL. You have to do the correct deployment using supported methods; e.g.; MSM files for version 10 RDC. The MSM files can be found on the downloads page:
    http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Also, make sure you are on a supported OS:
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567
    The above mentions .NET, but same will apply to RDC based apps.
    Ludek

  • How to write code to print and save the output in my GUI?

    I had been searching on code to program print and save commands to print and save the output from the GUI but to no avail. Can someone help me?

    The output will be link from the previous GUI page. Hence the output is a page with Jtable and a button for print to print the information in the JTable.

  • How can I set up printing to queues on a Windows 2008 server directly from the iPad apps and not from third-party applications without using AppleTalk or Bonjour?

    We have a Windows 2003/2008 server-based network with a dedicated print server which we would like to be able to print to over Wi-Fi.  How can I set up the printers on the iPad without downloading a third party application such as Print Central or Print N Share?  I want to just click the arrow and "Print" then choose the printer, which doesnt show up.  I want to be able to use the existing TCP/IP-based network that we have to reach these queues, not having to install Bonjour or AppleTalk to reach them.
    Thanks,
    KMQ7

    This would really be the "Holy Grail"   right now.  I think this a feature that every large organization requires. AirPrint works on a small scale, but is not really an enterprise class application.  In addition it uses the Bonjour discovery process which is difficult in a large LAN WAN environment.  For those that would remind me, I am aware of the enhancement link 

Maybe you are looking for

  • Connecting Macbook to AVR reciever

    Im trying to connect my 2009 Macbook to my Harman Kardon AVR 1650 through an HDMI cable so I can watch video on my TV. The reciver is obviously  connected to the HD TV. When I plug in the cord to HDMI 3 and select the correct input (HDMI 3), my compu

  • Error in the helloworls page startup in oaf

    500 Internal Server Error oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.      at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509)      at oracle.apps.fnd.profi

  • I am unable to connect to server

    I accepted an ios update and downloaded it.  When it said I must accept terms and conditions concerning icloud, I was not familiar enough with it and did not accept it.  The message kept coming back and I did something to cancel it.  Now I am unable

  • Lack of Clarity, Low Bass on Headphones S55-B5280

    I was using some Sony Pro headphones that I purchased for audio production on my new Toshiba laptop and noticed a dramatic difference in the clarity today. I ended up doing a complete recovery image and put it back to factory defaults because was wor

  • Higher order function and threads

    Does anyone knows if I define an interface ApplyObj with a binary function f as it's only method; the binary operator that we want to pass as an argument into the reduction is then declared as a class that implements this interface. How to I do that?