Help me out printing a report

I'm trying to print a report directly to the printer and it's being hard. To see the report in the screen it's easy but to the printer it always gives an error. Is there a way that i can print to a local printer? I'm trying to set destype to printer and desname to printername, wich is a printer that users have in their system. I have my forms running in a linux server. How can i do this?

The only way I know of to send the output of a report directly to a printer is through the use of a Java Bean. Take a look at the article: A Java Bean to print files to the local printer.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Help in download & Printing of report

    Hi all,
    we are developing one web application in that one my jsp page generate report in table format, This jsp page is having two buttons one for downloading and another for printing .When I click on download button that report should be downloaded into either word document or excel document.when i click on Print button that Report should get printed out.
    Please help me how to do this functionality.I need a way to start with.....
    Thanks in advance
    Namrata

    namratasingh wrote:
    When I click on download button that report should be downloaded into either word document or excel document.Is CSV also fine? This is the easiest, if you already have a collection of data behind. Otherwise look around for reporting API's, such as Jasper Reports and Crystal Reports.
    when i click on Print button that Report should get printed out.Is your HTML/CSS semantized? Is the data already displayed as HTML on the page? Then provide a CSS style for the [print media|http://www.w3.org/TR/REC-CSS2/media.html] and call Javascript window.print(); on click.

  • Please help me out with this report

    hi to all experts,
    my requirement  is to display only those purchase order that were created on Saturdays and sundays. i have toiled hard and could develop the code but still im not be able to get the requirement.IT is showing all purchase order for the given date range. what should be modified in my code.
    *& Report  Z_DAYS_SUNDAY_SAT                                           *
    *& This report will display purchase order created on saturday and sunday                                                                    *
    REPORT  Z_DAYS_SUNDAY_SAT                       .
    tables: ekko,dtresr.
    types: begin of ty_pur,
              ebeln type ekko-ebeln,"purchase document no
              bukrs type ekko-bukrs,"company code
              bstyp type ekko-bstyp,"document category
              bsart type ekko-bsart,"document type
              aedat type ekko-aedat,"date on which record was created
         end of ty_pur,
        begin of ty_days,
          days type ekko-aedat,
         end of ty_days.
    data: it_ekko type table of ty_pur,
          wa_ekko like line of it_ekko,
          it_days type table of ty_days,
          wa_days like line of it_days.
    data : dbtwn type i,
           g_day type dtresr-weekday.
    parameters : p1 type dats,
                 p2 type dats.
    ranges : r_day for ekko-aedat.
    r_day-low = p1.
    r_day-high = p2.
    r_day-sign = 'I'.
    r_day-option = 'BT'.
    append r_day.
    if p2 gt p1.
    dbtwn = p2 - p1.
    else.
    message e000(zhnc) with 'plz enter date in proper order'.
    endif.
    do dbtwn times.
    CALL FUNCTION 'DATE_TO_DAY'
      EXPORTING
        date          = p1
    IMPORTING
       WEEKDAY       = g_day.
    if g_day = 'Sat.' or g_day = 'Sunday'.
    wa_days = G_DAY.
    APPEND wa_days TO it_days.
    p1 = p1 + 1.
    Endif.
    enddo.
    select    ebeln
              bukrs
              bstyp
              bsart
              aedat from ekko into table it_ekko where aedat in r_day.
      loop at it_ekko into wa_ekko.
      READ TABLE it_days INTO wa_days WITH KEY wa_days-days.
      write : / wa_ekko-ebeln,wa_ekko-bukrs,wa_ekko-bstyp,wa_ekko-bsart, wa_days-days.
    endloop.

    Hi
    try this code I've made changes...
    *& Report Z_DAYS_SUNDAY_SAT *
    *& This report will display purchase order created on saturday and sunday *
    REPORT Z_DAYS_SUNDAY_SAT .
    TABLES: ekko,dtresr.
    TYPES: BEGIN OF ty_pur,
    ebeln TYPE ekko-ebeln,"purchase document no
    bukrs TYPE ekko-bukrs,"company code
    bstyp TYPE ekko-bstyp,"document category
    bsart TYPE ekko-bsart,"document type
    aedat TYPE ekko-aedat,"date on which record was created
    END OF ty_pur,
    BEGIN OF ty_days,
    days TYPE ekko-aedat,
    END OF ty_days.
    DATA: it_ekko TYPE TABLE OF ty_pur,
    wa_ekko LIKE LINE OF it_ekko,
    it_days TYPE TABLE OF ty_days,
    wa_days LIKE LINE OF it_days.
    DATA : dbtwn TYPE i,
    g_day TYPE dtresr-weekday.
    PARAMETERS : p1 TYPE dats,
    p2 TYPE dats.
    RANGES : r_day FOR ekko-aedat.
    r_day-low = p1.
    r_day-high = p2.
    r_day-sign = 'I'.
    r_day-option = 'BT'.
    APPEND r_day.
    IF p2 GT p1.
      dbtwn = p2 - p1.
    ELSE.
      MESSAGE e000(zhnc) WITH 'plz enter date in proper order'.
    ENDIF.
    *DO dbtwn TIMES.
    *  CALL FUNCTION 'DATE_TO_DAY'
    *    EXPORTING
    *      date    = p1
    *    IMPORTING
    *      weekday = g_day.
    *  IF g_day = 'Sat.' OR g_day = 'Sunday'.
    *   wa_days = g_day.
    *    APPEND wa_days TO it_days.
    *  ENDIF.
    *  p1 = p1 + 1.
    *ENDDO.
    SELECT ebeln bukrs bstyp bsart aedat FROM ekko INTO TABLE it_ekko WHERE aedat IN
    r_day.
    LOOP AT it_ekko INTO wa_ekko.
      CALL FUNCTION 'DATE_TO_DAY'
        EXPORTING
          date    = wa_ekko-aedat
        IMPORTING
          weekday = g_day.
      IF g_day = 'Sat.' OR g_day = 'Sunday'.
            WRITE : / wa_ekko-ebeln, wa_ekko-bukrs, wa_ekko-bstyp, wa_ekko-bsart, g_day.
      ENDIF.
    ENDLOOP.

  • Not able to take print a report directly to the printer

    Hi All,
    Can anyone help me to print a report directly to the printer?. Currently, I am viewing the reports in the screen and then taking print of that report. If anyone knows the solution for this, please give me the feedback immediately. It is very urgent.

    HI ALL
    i have the same problem plz tel me som solution 4 it
    thanx in advance

  • Problem in Print Out of ALV report

    Dear All..
    I am trying to take print out of an ALV report. there are 36 columns in my report. when i try to take print out, warning appears which says system cannot print the last 277 columns of report.
    i have tried using different formats for printer like :
    Format                  Description
    X_PAPER                 ABAP/4 list: Default list formatting
    X_SPOOLERR          ABAP list: Spooler problem report
    ZX_65_284               65 Rows and 285 Columns
    X_65_255                ABAP/4 list: At least 65 rows with a maximum number of c
    X_65_200                ABAP list: at least 65 lines with 200 columns (not for a
    X_58_170                ABAP/4 list: At least 58 rows by 170 columns
    X_65_132                ABAP list: At least 65 rows by 132 columns
    X_90_120                ABAP list: At least 90 rows by 120 columns
    X_44_120                ABAP/4 list: At least 44 rows by 120 columns
    X_65_80                 ABAP/4 list: At least 65 rows by 80 columns
    but every time the same message appears even on A3 size paper..
    i am using REUSE_ALV_GRID_DISPLAY to display ALV.
    Please help to to take out prints(can be in condensed mode) so that all columns appear on the print out..

    HI sujeet,
    Thanks for ur response. i had already checked the printer settings.. i think there is no problem with this. Can u Please suggest something else. thanks
    Hiii jyojit..
    Thanks for reply. I had already checked the said check box in spool admin. but the problem still exists. Please suggest something to get rid of the problem.

  • HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out?

    Question
    HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out? edit

    Thank you for posting your list of installed Extensions. One of them might be intercepting the menu command. Since you have the Add-on Compatibility Reporter, it's possible that an older add-on that doesn't actually work well with Firefox 5 could be to blame. Could you try disabling the "HP Smart Web Printing" extension and see whether that makes any difference?
    Also, you can simulate a print button on a web site by pasting this to the location bar and pressing Enter. You also can save it as a bookmark for easier access (when scripts are saved as bookmarks, we call them bookmarklets). Hopefully you won't need it for long.
    <br>javascript:void(window.print());

  • Need Help with Print a Report

    Hi,
    I am building a database application in Java and now i need to print some reports ....
    I need to get the data from the database .. do some calculations , and then print in on paper.
    I checked online and got some tools like JasperReports, jfreereports, ReportCat, etc. so I was wondering if somebody can suggest whats the best.
    In my report I will have to print more than one table on one page.
    for example:
    if I have 4 Invoices. then i will have 4 tables .. one for each invoice.. and each table will contain
    the elements for that Invoice.If all can't fit on one page then it needs to go next page.
    I would like to do all this stuff in Java without using any reporting tool ... but I am not really sure how this can be
    done .. can someone give me an idea ... as per how this can be done .. will really appriciate all the help.
    Thanks in advance,
    sandsouza

    Hi,
    Can somebody please help me with this.
    Thanks in advance
    sandsouza

  • Error when print out SAP Crystal Report in SAP B1

    Dear all,
    I have encountered the following message when I tried to print out SAP Crystal Report at client pc:
    Could not load file or assembly 'CrystalDecision.Windows.Forms, Version = 12.0.2000.0, Culture=neutral, Publickey Token=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    On the other hand, there's no error when I print out the SAP Crystal Report on server.
    Can anyone advice on the error message as above?
    Thanks alot.

    Hi All,
    I have SAP 2007 B,Visual Studio 2008 and Crystal report 2008 Add-on.  I am facing the same problem,
    "Could not load file or assembly 'CrystalDecision.Windows.form,Version=12.0.2000.0, Culture=neutral,Publickey Token =692fbea5521e1304' or one of its dependencies. The system can not find the file specified."
    I have uninstalled SAP B1 and Crystal report 2008. Still I am getting the same Error message. Kindly give me your suggestions.
    Regards,
    Tom.

  • URGENT: REGARDING ROUTING REPORT(plzz help me out)

    Hi,
    I am making a report in which i have to display the stock during the routing i.e. in CA03 we get to know which are the operations are implemented on a material. the requirement is if there are 50 pcs of material are in 1st operation and only 10 materials are able to reach next stage of operations ,then how many pcs of a material are left among them? i want to know which are the tables used for these qtys as i am checking that in CA03  the values are in structure and i want to know in which tables these quantities to be present.
    plzz help me out as it is really urgent and help will be definitely rewarded.
    Edited by: ric .s on Apr 1, 2008 7:45 AM

    hi,
    can anybody tell me which are the tables used in the routing?

  • Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Oh, don't worry. I know exactly. I'm a retired law enforcement officer after 30 years. I didn't mean for them to allow you to use the Internet, I meant for them to assign an officer to try and track the device for the victim. Again, that would require the victim to provide their Apple ID and password, which most would not want to provide.
    Pinging the phone as you mention is only when there is probable cause and that is done through the carrier.
    I'm glad to see someone also understand that a stolen cell phone is not as important to law enforcement as it is to the victim. It is unfortunate as smartphones get more expensive. Hopefully as iOS 7 makes it debut later this year, the work Apple has done will have some impact on smartphone theft. Other manufactures and carriers are starting to improve here in the states. It never was something carriers worryed about with blacklisting. This is where they were a step ahead in Europe.

  • URGENT: Date format in Reports Giving me trouble...plz help me out

    Hi guru's Can any one help me out
    I
    n the front end apps we are getting the date value as
    BOM_SRS_DATETIME_STANDARD
    Where we are entering the date value as MM/DD/RRRR HH24:MI:SS
    The date format set in the company is like RRRR/MM/DD HH24:MI:SS
    SO I format masked the date parameter in .RDF to RRRR/MM/DD HH24:MI:SS format.
    While the actual date format in the data base is like DD/MM/RRRR HH24:MI:SS.
    I checked all the old reports and the date format is like they masked the date format to company format and used the afterparameter trigger like bellow:
    if :P_SENT_DATE_FROM is not null and :P_SENT_DATE_TO is null then
    :P_SENT_DATE_TO := :P_SENT_DATE_FROM;
    end if;
    if (:P_SENT_DATE_FROM = :P_SENT_DATE_TO) and (:P_SENT_DATE_FROM is not null) then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE = '||' to_date('''||:P_SENT_DATE_FROM||''''||','||'''DD-MON-RR'')';
    else
    if :P_SENT_DATE_FROM is not null then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE >= '||' to_date('''||:P_SENT_DATE_FROM ||''''||','||'''DD-MON-RR'')';
    end if;
    if :P_SENT_DATE_TO is not null then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE <= '||' to_date('''||:P_SENT_DATE_TO ||''''||','||'''DD-MON-RR'')';
    end if;
    end if;
    I tried this but i couldnt get the output either.
    I am pretty much confused.
    Plz help me out...

    If you want to use a dynamic where caluse in your report query you can use a Reference Cursor using REF CUR QUERY tool in your report like this :
    function QR_1RefCurDS return DEF_CURSORS.CHARACT_REFCUR is
    temp_CHARACT DEF_CURSORS.CHARACT_refcur;
    begin
    IF :FROM_NO IS NULL AND :TO_NO IS NULL THEN
    open temp_CHARACT for SELECT ACCT_CODE, ACCT_NAME
    FROM CHARACT
    ORDER BY ACCT_CODE;     
    ELSIF :TO_NO IS NULL AND :FROM_NO IS NOT NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE=:FROM_NO
    ORDER BY ACCT_CODE;     
    ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NOT NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE BETWEEN :FROM_NO AND :TO_NO
    ORDER BY ACCT_CODE;               
    ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE<=:TO_NO
    ORDER BY ACCT_CODE;     
    END IF;
    return temp_CHARACT;
    end;
    But first you have to declare a cursor type in a package

  • HT1338 Hello, i currently acquired a Mac Book Pro and running Mac Os X 10.8.3, but i have failed to get the driver for my canon inkjet printer. could anyone help me out please? Thank you

    Hello, i currently acquired a Mac Book Pro and running Mac Os X 10.8.3, but i have failed to get the driver for my canon inkjet printer. could anyone help me out please? Thank you

    You may be able to download it fom here:
    Printer and Scanner software available for download:
    http://support.apple.com/kb/HT3669?viewlocale=en_US

  • C4400 only prints 1/3 of a photo on 4 X 6 photo paper. Filled out printer setup perfectly! Help!

    C4400 only prints 1/3 of a photo on 4 X 6 photo paper. Filled out printer setup perfectly! Help!

    Fritzk,
    Some other useful info would be connection method to the printer and the application we are printing from, as well as if other printing (docs etc) work or not. But in the mean time lets also go through some of the basics together. Lets make sure the printer is set properly for photos using printing preferences:
    -Click the start button and then select devices and printers.
    -Right click your printer and select printing preferences.
    -In the new window that appears on the left you will see printing shortcuts. There will be one marked as photo or some variation - select that. To the right ensure that the size is set to 4x6.
    -Click ok to close the window and save the changes.
    Try the print again. If it does not resolve anything lets move on to making sure we have no software tripping us up. Try downloading and running the print and scan doctor located here: http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c03275041&cc=us&dlc=en&lc=en - It can fix a lot on its own and if not give us a better idea of what is going on. Let us know the results.
    If all the software components check out use this article as it handles partial prints under unique circumstances: http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01892627&cc=us&dlc=en&lc=en
    Give the steps listed under windows a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Please help me out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

  • Please help this clueless beginner with out.print syntax....

    Please help a clueless beginner out!!!! :-)
    I'm trying to build a dynamic table that functions as a calendar...(see http://www.oreilly.com/catalog/javacook/chapter/ch18.html for the basic idea and code structure).
    Here's the problem...I want to make each date inside of the table a hyperlink to a new page. I figured out how to create the hyperlinks, but I CAN'T figure out how to create hyperlinks that pass variables to a new page.
    Here's the code that works:
    // Fill in numbers for the day of month.
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp>");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    Here's the code that DOESN'T work....but can serve as pseudo-code for what I want to do:
    // Fill in numbers for the day of month.
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp?year=<%= yy %>&month=<%= months[mm] %>&date=<%= i %>>");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    <%= yy %>, <%= months[mm] %> are defined elsewhere in the code, and I want to use the current value of "i" from the loop.
    So, if everything works like I want, the table will get created, and if yy=2002 and mm=January, then the hyperlinks will look like:
    for day 1:
    "/newpage.jsp?year=2002&month=January&date=1"
    for day 2:
    "/newpage.jsp?year=2002&month=January&date=2"
    ...for day 31:
    "/newpage.jsp?year=2002&month=January&date=31"
    Can someone please point me in the right direction? Is it even possible to do what I want? (I assume it is...but maybe I can't use out.print???)
    Thanks!

    Hi. The expression "<%=some_Java_expression %>" is the JSP tag, that returns string value to HTML code. You should use it in HTML block like:
    <%String myname="Ivan"; %>
    <body>
    <p>My name is: <%=myname %></p>
    But You tried to use it inside the string expression and it generated some code like this:
    <a href="newpage.jsp?year=<%=yy%">...
    , didn't it?
    It invokes method out.print(" ... "), that prints this string value (but in the HTML block). So You tried to print something inside the print method. You should rewrite Your code like this:
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp?year="+yy+"&month="+months[mm]+"&date="+i+">");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    I used the + operator to join Your code for link tag with the values (yy, months[mm], i.
    I hope it helps You,
    bye.</a>

Maybe you are looking for

  • Left joins : Case or if statement

    Hi I want to know if one can build in a case or if statement into a left join. I want to multiply a value with -1 if the condition is met.

  • XL Reporter report generation is taking to long

    Any Idea whats goin on everytime we generate a report wit XL reporter  evrybody hungs and report generation takes too long, need help please

  • Sales Process

    Hi Is it Possible to create sales order and sales invoice then create delivery with below scenario o     Creating the  sales order then sales Invoice will be created automatically based on the sales order. o     Then the order required release once R

  • Can you use Motion to plan camera shots, storyboard...Motion 4 for 2008???

    Just wondering if its possible to use Motion 3 as a previsualization software program like frameforge 3D or Antics??? Is it possible to plan camera shots with Motion and insert characters, etc. Does anyone know if Apple is planning to expand Motion 3

  • DynamicSiteName not all updating

    Site 1: Datacenter                                                       Site: 2 (Office)2 RODC's.  One acting as                                                                   DNS and DHCP Primary DC servers