Print report.vi for printting the frant panel

I download a example,now  when i run it ,it can print the frant panel,but there is another dialog .how can i make it disppear .
Attachments:
dialog.jpg ‏208 KB

Hi Fay,
No question is too foolish during the process of learning.
well i did not have to use the highlight execution to detect error, Since in your VI,  the error that was poping up had to do something with a file creating operation.
so i checked the path you had set, and it turned out to be an invalid path. Thats all!
And here's something i would like to tell, unless u want to fix the file path, do not keep the file path as a constant.
When Kept as a control, a pop up msg will ask you for the file path, which is easier for you to browze and specify the file path.
hope you enjoy learning LabVIEW.
All the best,
Regards
Dev

Similar Messages

  • Can not print report directly to printer.

    Hi,
    We are using Crystal Report Server for reporting in our project.
    The version we are using is Crystal Report Server XI R2 and Crystal Report Server XI R2 SP 2.
    Please kindly advice us on the following issues we faced:
    - Can not print report directly to printer.
      The print button on the Crystal Report Viewer prints the report to pdf and user have to click "Print" again in the pdf file. This is unusual and not convenient. As we have hundreds of reports to print, is there a way we can print the reporrt directly to printer?
    - "Set to Null"
      In the default interface of the Crystal Report View, there's is this "set to null" check box that we can not remove. Is there a way to do without it?
    Thank you,
    Kenny Tew

    Morning Kenny,
    The printer settings are in server management console. Additionally see what settings you have setup for the printer for the report in the server. If it is setup to use End User printer then check your End user machine settings and make sure the printer is setup as a default printer on his/her machine.
    Please let us know how you get along with the issue.
    As far as "Set to Null" I am not sure where it is set up. A screenshot of it might help understanding it better?
    Many thanks
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Oct 6, 2008 11:07 AM
    Is this issue on all computers or only one computer?
    I have just tested this on my colleague machine and it asks for default printer and not pdf however on mine I setup for pdf.

  • HOW TO STOP MY DESKJET F2180 FROM PRINTING PRINT REPORT AFTER EVERY PRINTING.

    good day,
    i have this problem about my deskjet F2180 everytime i print documents after every printing  it also prints reports
    regarding location of the file, time, last made etc etc.. it's so fruastrating because it's a waste of paper.if i print 100 copies 5 pages documents it also prints 100 print reports.
    please help how to reconfigure or fix this one
    thank you and godbless

    Hi
    that sounds like a word (office) issue, it an option that word gives your, check HERE to turn it off.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Switch from OINV to ODRF in Crystal Report layout for print the Invoice?

    Hi,
    I have imported in Sap Business One some standard report developed by Sap with Crystal Report (like Sales Invoice).
    I have try to print my Invoices and all is OK, then I have try to print a Draft Invoice and, even in this case, is all ok. Then I have open the Crystal Report designer for this print module, and the entry point is the OINV table. How can he print succesful the Draft Invoice (that is in the ODRF table ObjType = 13)? Formula Field? I don't understand!!
    Thank for the help!!
    Marco

    Hi Marco,
    You only need a single Crystal report for this. Base it on a stored procedure which has two INT type parameters @DocKey and @ObjectId. Within your SQL create IF blocks to handle different @ObjectId values:
    IF @ObjectId = 13 then use the invoices tables OINV/INV1 etc.
    IF @ObjectId = 112 then use the draft tables ODRF/DRF1 etc.
    Don't forget to put the @ symbol at the end of the parameter in the report itself. That is all that is needed to create a single report that works for both added invoices and draft invoices. You could extend the SQL to handle other @ObjectId values like 14 for AR Credit Notes and so on.
    Regards,
    Andrew.

  • Sample for printing report directly to printer

    Hi Guys
    Does anyone have a report which can print directly to the printer when the radio button option is selected .
    I want to print the ALV in excel format.
    Printer >>>>.
    Screeb >>>>>
    Regards
    P.Eslam

    Hi
    I tried with this FM but giving short dump error can anyone explain why pls see the below program for testing.
    REPORT  Z_ESLP_ZTCODE .
    "LINE-SIZE 600 .
    TABLES : AGR_TCODES,
    AGR_USERS,
    TSTCT.
    type-pools: slis.                                 "ALV Declarations
    CONSTANTS MARK VALUE 'X'.
    *Data Declaration
    LIFNR, NAME1, STRAS, ORT01, REGIO, PSTLZ, PFACH, LAND1
    TYPES: BEGIN OF  T_DISP,
    AGR_TCODES TYPE AGR_TCODES-TCODE ,             " Transaction code A
    AGR_NAME   TYPE AGR_TCODES-AGR_NAME,           " Role Name B
    AGR_UNAME  TYPE AGR_USERS-UNAME,               " Short User Name B
    TTEXT      TYPE TSTCT-TTEXT,                   " Description Name C
    TEXTC      TYPE USER_ADDR-NAME_TEXTC,          " Long User Name
    SPRSL      TYPE TSTCT-SPRSL ,                  " Language c
    END OF t_disp.
    DATA: it_disp TYPE STANDARD TABLE OF t_disp INITIAL SIZE 0,
          wa_disp TYPE t_disp.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    DATA:L_PARAMS TYPE PRI_PARAMS,
           L_VALID TYPE C.
    DATA: w_file      TYPE  rlgrap-filename VALUE 'it_value'.
    SELECTION PARAMETER CRITERIA
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME.
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: P_TCODE FOR AGR_TCODES-TCODE  , "OBLIGATORY, "no-extension no intervals,
    U_NAME FOR AGR_USERS-UNAME,
    R_NAME FOR AGR_USERS-AGR_NAME .
    SELECTION-SCREEN END OF BLOCK BLK1.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN END OF BLOCK BLK2.
    SELECTION-SCREEN END OF BLOCK BLK.
    SELECTION-SCREEN BEGIN OF BLOCK radio WITH FRAME.
      PARAMETERS :scr   RADIOBUTTON GROUP rbg1 ,
                  pr  RADIOBUTTON GROUP rbg1 .
      SELECTION-SCREEN END OF BLOCK radio.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_UNAME'.
      fieldcatalog-seltext_m   = 'User'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'TEXTC'.
      fieldcatalog-seltext_m   = 'Name'.
      fieldcatalog-outputlen   = 50.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_NAME'.
      fieldcatalog-seltext_m   = 'Role Name'.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_TCODES'.
      fieldcatalog-seltext_m   = 'Trans Code'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-outputlen   = 15.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'TTEXT'.
      fieldcatalog-seltext_m   = 'DESCRIPTION'.
      fieldcatalog-outputlen   = 40.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_disp
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc  EQ 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form lfa1 table and populate itab it_lfa1
    form data_retrieval.
    CASE MARK.
        WHEN scr.
       SELECT AGR_TCODESTCODE AGR_TCODESAGR_NAME AGR_USERSUNAME TSTCTTTEXT USER_ADDR~NAME_TEXTC
      INTO TABLE IT_DISP
      FROM AGR_TCODES
      INNER JOIN AGR_USERS
      ON  AGR_TCODESAGR_NAME = AGR_USERSAGR_NAME
      INNER JOIN USER_ADDR
      ON AGR_USERSUNAME = USER_ADDRBNAME
      INNER JOIN TSTCT
      ON AGR_TCODESTCODE = TSTCTTCODE
      where
      agr_tcodes~tcode in p_tcode
      and
      agr_users~uname in u_name
      and
      agr_tcodes~agr_name in r_name
      and
      TSTCT~SPRSL EQ 'E'.
        WHEN pr.
      CALL FUNCTION 'FTBU_START_EXCEL'
        EXPORTING
          data_name           = w_file
          data_path_flag      = 'T'
    *---Start Excel and not Wait
          wait                = ' '
        TABLES
          data_tab             = it_disp
        EXCEPTIONS
          no_batch            = 1
          excel_not_installed = 2
          wrong_version       = 3
          internal_error      = 4
          invalid_type        = 5
          cancelled           = 6
          download_error      = 7
          OTHERS              = 8.
          NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.
           write : 'print'.
          NEW-PAGE PRINT ON.
    ENDCASE.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Transaction codes by User and Role Name ' .
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_disp lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Transaction Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.

  • Unable to print Report. Printout dispays the first record always

    My application generates a HTML Report which displays to the user in the browser. Since it was a requirement from the client We have used a scrolling div to display the desired records all at the same time. Thus the user can scroll through the div and view all the records.
    We have provided a Print Report functionality in our report. It uses the window.print() built in functionality of javascript.
    The problem is that the print out put is not having the same look and feel as the Page. Moreover if i scroll down the div to display hidden records and then click on the print report link it always prints from the 1st record onwards.
    Can someone please help me resolve the issue?
    Regards
    Nirmal

    I am experiencing a similar problem.  I have two reports I need to print.  The first must come from tray 1 and the second from tray 2.  However, if my default printer is not capable of having more than one tray even though I set the printer name of the reportDocument object to a multi-tray printer and the papersource is set properly for the given report all reports print from the same try.  I am using CR 9 and C# with Visual Studio 2005.  Does anyone know of a way to dynamically specify the printer and tray that will stop the default printer from interfering with the report I am trying to print?

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

  • Printing Report on client printer

    Hi,
    I am using oracle 9ids ( Oracle9i Developer Suite 9.0.2.0.1 ).
    I have an application which call a report from a form module.
    I run the application from another machine and that machine has a local printer installed on that machine.
    when I give destype=printer in the parameter form and submit, it will not print the report.
    What I have to do to print the reports.
    Please let me know the solutions for this ASAP.
    Regards,
    Malay

    The simplest way is to have your report output to pdf and then they can print the pdf. If you are trying to print directly to the printer without showing the report on the screen at all, then what we have done is make the local printer available from the network and then send the output of the report to the network name for the printer.
    The problem is that the report is running on the reports server, not the local machine. The reports server doesn't know anything about the local printer of the client. To be able to print a report directly, the reports server has to be able to "see" the printer.

  • Printing report directly from printer

    Hi,
    I need a small information.if any one of our guys can give me some info that would be great.
    I am writing a ABAP report now. lets say when we write 'hello world' in code and F8  program o/p will show 'hello world' right. I need to print this through user default printer automatically...might be pop-up for confirmation would help.
    Thanks in advance...
    Raj

    Hi Rich,
    Calling program is
    REPORT ZTESTRAJ1 .
    parameters:p_date like sy-datum.
    DATA: SELTAB     TYPE TABLE OF RSPARAMS,
          SELTAB_WA  LIKE LINE OF SELTAB.
    start-of-selection.
          CLEAR SELTAB_WA.
    MOVE: 'p_date' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          sy-datum    TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    CLEAR SELTAB_WA.
    MOVE: 'p_matnr' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          '1233344'  TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    SUBMIT Ztestraj with p_date eq sy-datum
                    with p_uname eq sy-uname
                    with p_matnr eq '122333' and return.
    if sy-subrc = 0.
    write 'Printed'.
    endif.
    Here is the program Ztestraj
    parameters:
    p_matnr like mara-matnr,
    p_date like sy-datum,
    p_uname like sy-uname.
    data:  l_matnr like mcha-matnr.
    start-of-selection.
    l_matnr = p_matnr.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              = l_matnr
    IMPORTING
       OUTPUT             =  l_matnr
    EXCEPTIONS
      LENGTH_ERROR       = 1
      OTHERS             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:  L_MATNR.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LOCL'
                COPIES                = COUNT
                LIST_NAME             = 'ZTESTRAJ'
                LIST_TEXT             = 'SUBMITTO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 80
                LINE_COUNT            = 120
                LAYOUT                = 'X_44_120'
               SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                NO_DIALOG             = 'X'
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT ztestraj TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO and return.
        if sy-subrc = 0.
        endif.
    ENDIF.

  • Form 6i printing report directly to printer

    Hi Professionals,
    I am in badly need of help to print my barcode report directly to printer from form, currently it is working fine if i make it preview first and then user has to select network printer to print, but user is not accepting that manual step, and therefore we are unable to launch our material management module.
    MY CURRENT CODE WHICH WORKING FINE WITH PREVIEW..................
    add_parameter(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PREVIEW');
    add_parameter(PL_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    add_parameter(pl_id,'paramform',TEXT_PARAMETER,'NO');
    add_parameter(pl_id,'STR',TEXT_PARAMETER,:IM_STR_ISSUE_MASTER.STR_CODE);
    add_parameter(pl_id,'BAT',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.BAT_ID);
    add_parameter(pl_id,'DIV',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.GRP_CODE);
    add_parameter(pl_id,'GRP',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.SUB_GRP_CODE);
    add_parameter(pl_id,'ITM',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.ITEM_CODE);
    add_parameter(pl_id,'COPIES',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.QTY);
    RUN_PRODUCT(REPORTS,'F:\IMS\REPORTS\STOCK_IN_BARCODE.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
    IF I CHANGE IT TO THE FOLLOWING FOR DIRECT PRINTING IT IS NOT WORKING
    ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
    ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, 'SOLABEL');
    I appreciate any efforts to resolve this issue.
    Thanks
    Ahon
    Edited by: [email protected] on Oct 4, 2009 11:20 PM

    Guide to Implement local printing on client in 10gas/9ias
    To archive this goal we have used orarrp(Oracle Reports Remote Printing Utility), which can be downloaded from the OTN website http://otn.oracle.com/sample/products/reports/index.html.
    Steps:
    1.Add the required ORARRP mime types to the Oracle HTTP Server configuration.
    (Note: This will be the Oracle HTTP Server belonging to the Oracle Application Server 10g/9ias middle (BI & Forms) tier)
    Do this manually by editing the httpd.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> MIME Types
    NOTE: MIME types added in httpd.conf are as per requirement mode in which report has to be run e.g. pdf, rt(rtf) and html etc. syntax for manual entry in httpd.conf is given below.
    AddType application/x-orarrp-text     rrpt
    AddType application/x-orarrp-ps     rrpp
    AddType application/x-orarrp-pdf     rrpa
    AddType application/x-orarrp-rt     rrpr
    AddType application/x-orarrp-ini     rrpi
    AddType application/x-orarrp-html     rrph
    2. Create an aliasmatch in forms.conf pointing to a physical directory \tmp- for example, directory will be c:\tmp
    Do this by manually editing the forms.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> Advanced Server Properties -> forms.conf
    Add a line like :
    # Virtual path for physical directory of temp
    AliasMatch ^/tmp/(..*) "C:\tmp/$1"
    ** IMPORTANT NOTE **
    The advantages of making the changes via EM / AS console, rather than editing the files manually, are:
    - the EM / AS console will put the mime type entries in the correct place
    - the EM / AS console automatically issues a 'dcmctl updateconfig' which synchronizes the file changes with the Infrastructure Metadata Repository
    - the EM / AS console will do the required restart of the HTTP Server component
    (Only the HTTP Server needs to be stopped and restarted – Oracle AS 10g components can remain up and running)
    If the changes are made manually then the following commands must be issued after the changes to httpd.conf and forms.conf have been made.
    Run these command at run prompt
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat updateconfig -ct ohs -v -d
    (to synchronize the changes with the Metadata Repository)
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat stop -ct ohs -v -d
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat start -ct ohs -v -d
    where DRIVE: is the drive where \oracle\frhome_1\ is installed.
    3. Copy and run orarrp.exe on client machine in program files\orarrp\ folder.
    4. Set value of options '”choose_printer=no” in orarrp.ini created at above folder.
    5. Add following lines in your code of run_report procedure.
    In declare section
    vc_file varchar2(225);
    In begin block add
    /* Generate a pseudo unique filename */
    vcfile:=:global.user_code||to_char(sysdate,'YYYYMMDDHHMISS');
    vcfile:=vcfile||'.rrpr';
    /* In this example - output will be rtf so adding .rrpr extension */
    set_report_object_property(repid, report_filename,store_var);
    set_report_object_property(repid, report_server, :global.r_server);
    set_report_object_property(repid, report_execution_mode, batch);
    set_report_object_property(repid, report_comm_mode, SYNCHRONOUS);
    set_report_object_property(repid, report_destype, file);
    set_report_object_property(repid, report_desformat,'rtf');
    set_report_object_property(repid,REPORT_DESNAME,'C:\tmp\'||vcFile);
    ---- path can be made dynamic by making a database entry in makess.path_entry for tmp folder and
    ---using proc_path procedure from path lib.
    :GLOBAL.PrintOutPut := vcFile;
    In Run report section make following change:
         vc_reportserverjob := RUN_REPORT_OBJECT(repid,pi_id);
         report_job_id:=substr(vc_reportserverjob,length(:global.r_server+2,length(vc_reportserverjob));
         v_rep_status:=report_object_status(vc_reportserverjob);
         if v_rep_status='FINISHED' then
              web.show_document('/tmp/'||:global.printoutput,'_blank');
         else
              message ('error when running report'||v_rep_status);
    end if;
    Edited by: amitphynyl on Oct 5, 2009 1:36 AM

  • When using "Print Report" my default printer changes.

    Hello,
    I have the need to print two different kinds of reports to two different printers depending on which report it is.  I use the Office toolkit and wire the correct printer for the report using the "Print Report" tool.  However, each time I do this, it changes the default printer in Windows to the printer wired.  I don't want to change the default printer just send the report to the specified printer.  Is there a work around?
    LV 8.0 through 2013, Win 7
    CLA

    Hi The Q,
    a workaround could be to read first which the default printer is, then print your page with the printer you want and then reset the stored printer to default. The information which printer is the default printer can be read from the registry.
    Hope this helps.
    Mike

  • Printing report to direct print 9i

    Hi,
    I am able to direct print the reports on web using normal parameters...i.e. desname, destype and desformat.
    When it prints successfully, it gives us a message in a separate browser window "The report has been successfully printed out"
    And we don't want this message. Can anybody tell me to suppress this window and message ?
    Command:
    WEB.SHOW_DOCUMENT('/reports/rwservlet?
    report=REPORT.rdf&userid=scott/tiger@ora&
    P_DEPTNO='||:EMP.DEPTNO||'&
    desformat=htmlcss&destype=printer', '_blank');
    Thanks,
    Martonio.

    Martonio,
    if you use RUN_REPORT_OBJECT() built-in in Forms to print Reports then you don't have this problem.
    If you request the Report directly from a Web browser, not using Forms at all, please ask the same question on teh reports forum here on OTN.
    Frank

  • Print report directly to printer using RUN_PRODUCT in Forms6i

    Hi all,
    I would like to have information regarding print any .rdf directly to printer from form 6i using RUN_PRODUCT.
    I got help from Form Builder Help option and tried following coding in form
         DECLARE
         PL_ID                    PARAMLIST;
         printername          VARCHAR2(50);
         BEGIN
         PL_ID := GET_PARAMETER_LIST('WEIGHMENT');
              IF NOT ID_NULL(PL_ID) THEN
                   DESTROY_PARAMETER_LIST(PL_ID);
              END IF;
              PL_ID := CREATE_PARAMETER_LIST('WEIGHMENT');
              printername := '"'||'I.T Printer'||'"';
              Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, PRINTER);
              Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);
              Add_Parameter(pl_id, 'P_EQ_NBR', TEXT_PARAMETER, :weighment.eq_nbr);
              Add_Parameter(pl_id, 'P_WT_GKEY', TEXT_PARAMETER, :weighment.gkey);
              Run_Product(REPORTS, 'c:\wegt001r', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         EXCEPTION
              WHEN OTHERS THEN
              MESSAGE(SQLERRM);
         END;
    END IF;
    But report did not printed and following message received in Reports Background Engine
    Error submitting report [Thu May 07 18:49:23 2009] ...
    REP-0159: Syntax error on command line.
    Pls help.
    Thanks,
    Hassan

    Hi Heidi
    I have already tried printername := 'I.T Printer'; but result is same.
    This is also my default printer and I tried to add / remove the following coding
    Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, PRINTER);
    but in both cased I received the same error.
    I also tried to print thru HOST command as follows
    the_username := Get_Application_Property(USERNAME);
         the_password := Get_Application_Property(PASSWORD);
         the_connect := Get_Application_Property(CONNECT_STRING);
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid= '||the_username||'/'||the_password||'@'||the_connect||' DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306';
    Host( the_command );
    Host command displays correctly but no printing.
    I then change my command as follows
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid=test/test@test DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306'; and now report prints on printer.
    But I cannot hard coded the username, password and connect.
    Thanks,
    Hassan
    Edited by: Hassan Raza Khan Lodhi on May 7, 2009 6:55 PM

  • Print report to POS printer

    Hi all,
    from my Form(6i) user opens report in PDF and after that they print it on POS printer(Epson). But problem is that paper printed have A4 format height, so how can I set up so that paper can be printed shorter?
    All the time users cutting rest of paper...
    Thanks in advance,
    Vlatko

    This may not help you, but we had an issue with missing fonts on a server. Some developers here used a helvetica font when creating the report on their local machines. When the file was executed on the server, the font defaulted to Arial, which is the first one in the list. There are all kinds of font directories and files buried all over the place in windows. Trying updating everyone you can find.

  • Print report directly to printer

    I am using Crystal Reports XI R2 to generate reports in Powerbuilder. I want to know whether it is possible to print the report directly to a printer without displaying it in the Crystal Report viewer?
    Thanks,
    Amol

    I have a very similar problem, not being able to print a report directly to the printer.
    But I am calling Crystal Reports v8.5 from VB6.  I have tried the  suggested code:
    report.PrintOut(prompt user, numberofCopy, collated, startpage, endpage)
    but get a "type mismatch" compiler error  with "PrintOut" highlighted when compiling, eventhough the inline help shows this method and matching arguments.
    I wonder if I have the correct DLL referenced.
    This report runs fine thru the preview window, but since this is a series of reports about 100 pages, don't really want the user to have to specify print dozens of times.
    Thanks,
    Gene

Maybe you are looking for

  • How to pass variable form javacript to java BackingBean

    Hello, I am trying to pass variable from Javascript method (which is written in jspx) page to a Java BakingBean. here is the Javascript code: <SCRIPT type="text/javascript"> function OnSave() { alert("The signature you have taken is the following dat

  • Reporting currency and Functional currency?

    How can I set up the reporting currency which is different from the functional currency in the set of book? Thanks, Amy

  • Ability to:

    hide boxes around icons, have unlimited amount of icons in folders, the ability to assign apps to specific active frame places and many more things like that! Panoramic Camera etc. please add all the necessary touches to bb10 we all know are needed

  • Adjustment brush not working in camera raw cs6

    The adjustment brush in Camera Raw PS6 is not working properly.  The slider makes a slight change but I can do no local adjustments.  All other parts of Camera Raw seems to be working.  I have restored the computer.  Is there a toggle I do not know a

  • I had my very first Kernel Panic last night. Is it worrisome?

    I sended the problem to Apple (Diagnostic report), and I never had a problem since. I heard it's a software issue, but I don't know much about it since this is my first time of having it after 3 months of having my 2014 MacBook Air. Does this happen