Passing printer name to reports

Greetings:
I have a report in 6i that will print to any of my printers fine if I run it in preview and then select File/Print/<Printer_Name>. The problem is that I want to pass the printer name in code rather than the user manually selecting. I've tried passing a parameter list in run_product (being called from Forms) but all I get in a blank page for output. Any ideas? Thanks!

Hey,
I was having the same problem with Report
Background Engine, it was giving me Dr.Watson
I did set orientation to portrait, as you
suggested and it worked?! Wierd is wright.
Just wanted to say thanks!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by cscopp ():
Thanks everyone,
Yes, I did try that Haritha but it didn't work. I've gotten it to work now, all I did believe it or not was set the "Orientation" in the property pallete to either portrait or landscape before compiling the report and it works now. Seems weird but it worked! On another note, please see my post about the report background engine.
Thanks!<HR></BLOCKQUOTE>
null

Similar Messages

  • How to pass printer name as a parameter to Bursting control file

    We are on 11.5.10.2 using XML Publisher 5.6.3. We ahve a requirement, where we need to print our invoices to different printers.
    How do we pass the printer name as a parameter to Bursting control file. Can the bursting control file be created to use the printer parameter.
    If it can, can you please provide some examples.
    - Vasu -

    Hi.
    I have created Formula column and it is coming in xml data.
    Like this way
    <CP_TAX_NO>CZ27813941</CP_TAX_NO>
    <CP_CUST_TAX_REG>CZ680527617</CP_CUST_TAX_REG>
    <CF_PRINTER_NAME>ABC_hp4250</CF_PRINTER_NAME>
    <C_REQ_ID>12310217</C_REQ_ID>
    </ISOPTWSHRDPAK>
    But while i passed it bursting directory, it is not printing, if i hardcode over there then it is printing.
    Bursting file code
    <xapi:delivery>
         <xapi:print id="printer1" printer="ipp://localhost:631/printers/${CF_PRINTER_NAME}" copies="1" />
    </xapi:delivery>
    In bursting program file It is display like :
    [1]printer-uri:ipp://localhost:631/printers/null
    If i pass hardcode value instead of cf_printer_name then it is working fine
    [1]printer-uri:ipp://localhost:631/printers/ABC_hp4250
    Pls suggest what to do?

  • Passing printer name to smart form

    Hi,
    How to pass more than four characters printer name to smart form function  module name. Please  help me. I will give points.
    Thanks.

    Hi,
        Thanks for your reply but there I can pass maximum four character printer name but my case printer name contains 12 characters. If I pass 12 characters printer name it is considering first four characters and it is displaying printer name is not found. So please tell me how to pass more than four characters printer name.
    Thanks.

  • Passing Printer as a parameter in the bursting control file

    One of our requirements is to print our report on different printers based on the user input. To acheive this, I am passing printer name as one of the parameter in our concurrent process. In the bursting java process, I set the properties as
    Properties prop= new Properties();
    prop.put("user-variable:PRINTER_NAME","ipp://146.141.12.128/printers/lp1");
    dp.setConfig(prop);
    dp.process();
    In the control file, I am pasing print delivery as :
    <xapi:print id="printer1" printer="$(PRINTER_NAME)" copies="1" />
    The system throws an error 'java string out of expection' and takes PRINTER_NAME as null in the print delivery. The same thing works perfeclty for E-Mail server if I pass name of the e-mail server in parameter and in the java and control file..I make the following changes:
    Properties prop= new Properties();
    prop.put("user-variable:SERVER_NAME","cns.wits.ac.za");
    dp.setConfig(prop);
    dp.process();
    <xapi:delivery>
    <xapi:email server="$(SERVER_NAME)" port="25"
    from="[email protected]" reply-to ="">
    <xapi:message id="123" to="${EMAIL}"
    Can anybody please help me with this..Has anybody tried passing printer as a parameter in the control file..

    Try curly brackets i.e. ${PRINTER_NAME} instead of $(PRINTER_NAME).
    Regards
    Ashish

  • How to find windows default printer name

    Hi Experts,
    I have one requirement.....smartform should print in local default printer.
    you might be known in windows we can set default printer name .
    Suppose when the user executes my program, smartform should print in the default windows printer. not sap default printer. I tried by giving printer name as LOCL. In that case it is displaying pop-window by showing printer name. I don't want to see that pop-up window.
    If I pass printer name in the smartform function module.. it is not displaying pop-up window and printing directly.
    For this we need to findout what is the default printer of that particular system.
    I think ... there will be method / FM to findout the front end default printer name...
    Pls help me..
    Thanks in advance
    Raghu
    Edited by: r badveli on Apr 17, 2009 4:46 AM

    Hi Raghu,
    Check the following tables to fetch the printer settings of a user.
    TSPUSRSEL - Spool: User-Specific Settings
    TSP03D   Spool: Device Description (New Format)
    So that you can use this detail and can fill the printer name.
    Hope this will be useful.
    Thanks,
    Rajesh.

  • Remove Printer Name from Crystal Report

    How can i remove the printer name from the Crystal Report so that the PrinterName property of the CRAXDRT.Report object in the RDC SDK is blank WITHOUT having the "No Printer" Option checkbox checked?
    Here's the scenerio.  When I first create a Report and don't go into Page Setup, PrinterName property is blank.  If I go into Page Setup and explicitly select a printer, PrinterName property equals the name of the printer selected.  If I check the "No Printer" checkbox in Page Setup, PrinterName property is blank.  But if i go back in and uncheck the "No Printer" checkbox in Page Setup, the PrinterName property equals the name of my Windows Default Printer.

    I'm still not sure what is unclear about my first question.  And I'm not sure how any of the info you are requesting is going to make any difference in answering my question.  And I'm not sure how your analogy fits here but ..
    Version of CR = 11.0.0.895
    CR Service Packs applied = None
    Web or Win app? = Win App
    OS? = Windows XP Service Pack 3
    Development language?  = Both Visual Basic 6 and C#.Net 2008
    Method of CR files deployment = email the .RPT file to a client
    Where were the runtime files downloaded from? = Runtimes are installed from Merge Modules donwload from SAP site
    What is the version of the craxdrt.dll on the deployed box? = 11.0.0.893
    So here are the exact steps so you can understand what is going on:
    I have the Crystal Reports Application open side-by-side with my Visual Basic development environment in debug mode so i can step through the code using the RDC SDK.
    1. I open the Crystal Reports Application and create a brand new report - "Test.RPT" and DO NOT go into Page Setup at all and save the report.
    2. In my Visual Basic development environment, i run the code that will generate the report, Here's the exact code
        Dim m_crApp As CRAXDRT.Application
        Dim m_crReport As CRAXDRT.Report
        Set m_crApp = New CRAXDRT.Application
        Set m_crReport = New CRAXDRT.Report
        Set m_crReport = m_crApp.OpenReport("Test.RPT")
    3. When i look at the PrinterName property in the CRAXDRT.Report object, it is blank.
        ie. crReport.PrinterName is equal to ""
    4. I reopen the Crystal Reports Application with report "Test.RPT" and go into Page Setup and check the "No Printer" option.
    5. I go back into my Visual Basic development environment and rerun the code that will generate the report.
    6. When i look at the PrinterName property in the CRAXDRT.Report object, it is still blank.
        ie.  crReport.PrinterName is equal to ""
    7. I reopen the Crystal Reports Application with report "Test.RPT" and go into Page Setup and uncheck the "No Printer" option. I have NOT specified any printer, nor have i clicked the "Printer..." button to setup a printer....i have just unchecked the "No Printer" option
    8. I go back into my Visual Basic development environment and rerun the code that will generate the report.
    9. When i look at the PrinterName property in the CRAXDRT.Report object, it is now set to my WINDOWS DEFAULT PRINTER, yet i had not specified any printer.
        ie.  crReport.PrinterName is equal to "
    MyNetwork\MyPrinter"
    PROBLEMS:
    1. The client needs the report to go to the default windows printer of their machine
    2. If the "No Printer" Option is checked, the Report does not print at all
    3. If the report is set to MY default windows printer and i give it to the client, at times it takes upwards of to a minute for the Print Dialog to disply.  As i've read on other forum posts, it appears Crystal is looking for MY printer on the clients machine and takes a minute before i realizes it can't find it and then sets it to the CLIENTS default windows printer.
    4. The client believes it is unreasonable to wait a minute for the print dialog to appear ...and i agree.
    5. I cannot change the code to use the Select Printer in the RDC SDK - it's a long explanation why but just suffice it to say that i cannot do this.
    All i want to do is either:
    1. Remove the Printer Name in the actual report from the Crystal Reports designer - basically undoing what Crystal did when i went into Page Setup.
    2. Via the RDC SDK, be able to detect the "No Printer" option is selected. Checkign CRAXDRT.PrinterName equal to "" is not an option.

  • Pass column-name as a parameter to reports

    Hello,
    the code below calls a report. But now I want to sort the rows in the report. For example I have a text-item in my form-modul. If I type a column-name and press the button then the rows should be sorted in the report. Is it possible tp pass column-names as parameter to reports?
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('STATIONSTOPOLOGIE');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracle-dev');
    -- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('http://oracle-dev:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_oracle-dev','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

    Hi,
    the work has been done in reports. You can use a lexical parameter in reports to add a condition for sorting to the query like:
    select .. from .. where ... &p_order.
    Then add another parameter to the report (for example p_param). Fill p_param via your interface in forms (SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, ....) with the column name. Then build a report trigger like:
    if :p_param is null
    then
    :p_order:= null;
    else
    :p_order:= 'order by '||:p_param;
    end if;
    But have a look, that p_param can only get correct values.
    Rainer

  • How to printing oracle report by specific printer name  on solaris?

    When running reports
    -http://host/reports/rwservlet?destype=PRINTER&desname=printername&desformat=dflt.prt&report=test.rdf&userid=test/test@TEST&MODE=CHARACTER
    report with destype=printer desname=printername, the report fails with REP-50159 Executed successfully but there were some errors when distribute the output
    if set default printer by add PRINTER=printername export PRINTER; in uiprint.txt
    it can print to printer.
    i found document id 394554.1 in metalink but it can't fix problem.
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:342229662272785964::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,394554.1,1,1,1,helvetica
    To fix the problem, execute the following steps:
    1. Take a backup of opmn.xml
    2. Edit opmn.xml and include the path information of the new printer:
    For In-process report server add the path information within <OC4J_BI_Forms>
    Eg:
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;................./>
    </environment>
    Here //printserver is the network drive where is printer is installed.
    For standalone report server add the path information within <reportservername>
    Eg:
    <ias-component id="standalonerepsvr01" status="enabled" id-matching="false">
    <process-type id="ReportsServer" module-id="ReportsServices">
    <process-set id="standalonerepsvr01" restart-on-death="true" numprocs="1">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;........../>
    </environment>
    3. Reload opmn : opmnctl reload
    4. Restart opmn: opmnctl stopall , opmnctl startall
    5. Run the report with destype=printer and desname=newprintername
    my config (solaris)
    oracle application server release 2 (10.1.2.0.2)
    i used axis printserver name is SZ_R02.
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH_64" value="/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparcv9"/>
    <variable id="LD_LIBRARY_PATH" value="/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
                        <variable id="PATH" value="/SZ_R02:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
    </environment>
    how to print to printer by specific printer name?
    thank you very much
    khun

    if submit url with parameter
    http://hostname:7778/reports/rwservlet?destype=PRINTER&desname=lpSZ_R02_2&report=sticker.out
    error
    REP-50159: Executed successfully but there were some errors when distribute the output
    How to Solution?

  • Printing Data File name on report...

    I need the datafile names to print on a report - we give the user serval files to choose from on the report and it would be nice to have the one selected as a note on the report

    we use a formula that alowes the to select say a file named New or Current.  Both data files are layed out te same just different data.  We have a internal formula.
    Formula: tsAskFile
    Description Use the tsAskFile formula to limit the file types the operator can choose when
    the report runs. This formula applies to the main report. It also applies to all
    subreports unless you use the tsSubAskFile formula on the subreports. This
    formula does not have file merging capabilities. If you use the following formula
    example on a report design, the report will prompt the operator to choose
    between the New.glt file and the Current.glt file when the report runs. Without
    the formula on the report, the operator could choose whatever file codes are
    available.
    Syntax u201C[<file type>(<file code name>[,<file code name>]*)]u201D
    <file type> = the abbreviation of the data file type; for example: BLI, GLT, APT,
    etc.
    <file code name> = the file code name of the data file; for example: new, current,
    history, active, standard, etc.
    Example @tsAskFile = u201CGLT(new,current)u201D or u201CGLT(new, current)JCT(current)u201D
    So we want to know which one the choose.

  • Get error when passing server name to Crystal Reports in Visual Studio 2012

    Hello,
    I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection.  Database Vendor Code 17.  I use SQL OLEDB as the provider.  It worked before.  Not sure what has happened.
    Any help is much appreciated!!!
    John

    Hi,
    See this: Failed to open the connection - database vendor code 17
    --dj

  • I can not print a report from my quicken program because the printer name has the word on in it

    I recently purchased and installed a HP Officejet Mobile L411 printer. For all apps. on my computer (Window&) the printer name is as follows: HP officiate Noble L411. On my Quicken program the printer name is as follows: HP Officejet Mobile L411 on USB001. In checking Quickens help/troubleshooting guide, Ifound thirst statement, make sure the printers name doesn"t contain the word "on". My question is how do I get my printers name in Quicken changed so it doesn't contain the word "on"

    Try opening the PDF in Preview and see if it will print out of it.

  • Error in passing print parameters

    Hi,
    I am submitting a report in background and using FM Get_print_parameters to get and pass print parameters to the dialog box appears while submitting that report.
    My problem is that i am passing printing device 'lab1' to dialog box through function module get_print_parameters but '$lab1' appears in the dialog box and hence due to invalid device spool request is not getting generated.I am running program in background so can't remove 
    '$' from the device name.
    Kindly advice me what can be done to solve this problem...
    Regards..
    Edited by: shekhar kumar on Nov 1, 2008 6:20 AM

    Generally the $ sign comes when the output device does not exist. Just check in SPAD tcode whether the output device lab1 is present or not? If it is not then create or use the some other output device. But if it is there and then also you are getting the error then dbl click on the output device and try to pass the short text of the output device instead of lab1.
    Regards
    Shiba Prasad Dutta

  • HELP to Open and Print automatic a REPORT

    Hello, I'm a Portuguese Developer, and i've a challenge, that is, i want to open REPORT by FORMS in RDF format and i want to open and print automatic way, i do not want to open, and then have to go print button to pint them.
    I want to open by FORM way and print automatic and close imediatly.
    HEP ME PLEASE!
    Thank you

    Aslam o Alikum (Hi)
    Ofcourse you can do this by specifing system parameters like DESTYPE=Printer and DESNAME=PrinterName
    Replace PrinterName with you printer name
    See System Parameters in Reports Under Data Model

  • How to issue print command from report/form server to client printer on web

    1) We have a client server application which is to be deployed on the web environment. The reports generated in our application are having a destination type as File. These reports are printed after applying some print format (escape sequences) which are passed on to the printer programmatically at runtime while printing.
    Now when this application is shifted on to the Application server (Forms server & Reports Server )in web environment ,the report outputs would be generated in the application server as against the client in client server environment as the report server is on the application server.
    Now while printing/accessing the report the output file will not be available to the client unless it is pushed on to the client side from the server . I am able to see reports in pdf/html output but in this case layout of my reports gets changed and I dont want to change my layouts or reformat my report layouts.
    How do I redirect the report output from the application server on to the client within the D2k context and then execute print commands?
    Note: In this case we want to use both DMT and Laser printing. Also note that we use escape sequences to adjust reports in desired printing papers.
    2) We have second set of reports which we call as document because these are printed after capturing data from 'Form' using text_io utility (please note that for these documents we are not using any Report 6i functionality)and we print it from file using printing mechanism as mentioned above. These are working well in client server application. We adopted this methodology for getting better performance (in terms of speed as database server and network traffic is not involved) of printing. But now we are converting our application for web, we are finding it difficult how to capture Form's data from browser to client's machine and then executing printing commands which are stored in our application liabrary.
    If you help me out by giving some suggestions, I shall be grateful to you.
    null

    Hello
    I wonder if you ever solved this problem.
    I have a very similar problem with Photoshop CS5 on Mac OSX 10.6 + HP Photosmart C7180.
    If I choose "Photoshop Manages Colors" the results are lousy.
    If I choose "Printer Manages Colors" the results are OK. not necessarily great.
    I believe I have all the correct settings after going through books and web advice (and wasted a lot of paper and ink).
    As far as I can see, "ColorSync" is the internal Mac management which is the only option available with "Photoshop Manages Colors" and "Vendor Matching" appears to mean the printer vendor (ie HP) will provide the matching. Either can be selected if "Printer Manages Colors" is used. It seems the type of paper can be set in three different places. if That's all a bit academic as the results are poor regardless.
    My wife suggests I buy a new printer - Epson's looking good.
    Any words of wisdom would be appreciated.

  • Preview and print a Crystal report prompted for the sa password

    Dear All,
    Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
    Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
    Any idea? Thanks a lot.
    Regards,
    Yuka

    Hi Yuka,
    1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
    Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
    2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
    Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
    3) Then from MY Crystal report, I have to use ODBC connection as well?
    Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
    Save your report and either send them the new one or if you are doing this remotely then replace the original report.
    VERIFY your reports to confirm they still return correct data and do work as expected.
    Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
    Hope this is all clear now....
    Thanks again
    Don

Maybe you are looking for