How can I print a form in a printer?

Hi, I will ask you an advice please.
I want to know how can I do a form for a receipt in Java and print it in a printer.
I have the data in a string, but also I want to insert in this form an image.
Do you know a class, or function for doing this, because I'don't even know how to give a proper format to my receipt?.
Thank you very much.

Start by getting this form to draw on the screen.
Then you'll just the replace the screen Graphics object with the printer Graphics object

Similar Messages

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • How can i print a form?

    how can i print a survey form?

    Sorry it is not possible to print all pages of a HTML form. People would have to print each pages individually as they are filling the form.
    You might concider distributing the PDF form instead of the HMTL form
    Click on the "Distribute Tab - > Save Submission-enabled PDF" button
    The filler could then use the free Acrobat Reader to fill-out the form, submit the data back to you and print it.
    Gen

  • How can i print the serial no: and total in smart form?

    how can i print the serial no: and total in smart form?
    i have two fields Quantity and Price; so i want to display the total for each item and
    atlast the grand total. also the serial no: for each line item.
    how it is possible?

    Hi
    You can do it by two ways
    By making table node or by making simple loop node
    ex
    loop node
          command line node
                  total = total  + itab-quantity.
    text node
    &total&
    Regards
    Aditya

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • How can i print data in smartforms from ABAP program.

    Dear gurus:
    in my abap program i process require data, and saved in a internal table.
    how can l print the data in smartforms.?
    who can give me a code sample is better:)
    reward all helpful advise.

    Try this....
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    <b>Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module --> smart form function module and pass your internal table</b>
    Regards,
    SaiRam

  • How can i print logo in all the page

    i've created a form(SAP script) which have  five page.pls can anybody tell me how can i print logo in all the five page?

    hi,
    u can try this in
          windows
    change window type as CONST or MAIN.
    cheers,
    sam

  • How can I print in the right hand corner of the paper (no borders)?

    How can I print in the right hand corner of the paper (no borders). I have Adobe 7.

    Is that elements 7 or photoshop 7? It can make a difference.
    What you can do is create a new document that is the size of the paper, then place your document in the new document. You can now align your document to the right side of the page.
    Now print.
    Borders can have two meanings here. You can add a border to an image such as a stroke for example. The other meaning is the printer has a non-printing area called a border.
    In the former there is nothing to do as long as you did not add one. In the latter some printers do have a print to edge option, but it has to be a feature of that printer. It would be located in the print options. If the printer does not have such a feature, there is nothing you can do, short of manually cutting the paper with a paper cutter, scissors, or x-acto knife.

  • How can I print the A/R Invoice in 4 copies

    Hi Experts
    Please let me know how Can I Print the A/R Invoice in regard 4 copies [crystal reports]
    For Example,
    1 [first] COPY ORIGINAL FOR BUYER
    2 [secand] COPY DUPLICATE FOR TRANSPOTER
    3 [thired] COPY TRIPLICATE FOR ASSESSE
    4 [fourth] COPY EXTRA FOR ACCOUNT
    please do let me know how to do the both and how can I make the both of the print at same time.
    Thanks in advance
    Bhavesh Kansagara

    Hi Bhavesh,
    Fristly you creat a Crystal Report for A/R Invoice (4 copies ie. 4 RPT file) then follow the following step.
    Administration -->Steup -->General --> Report and Layout Management
    --> Report and Layout Management form are open
    --> Click the Sales A/R option
    --> A/R Invoice option
    --> AR Invoice (Items)
    --> Then Import all the 4 Copies (4 RPT files)
    --> Then Click the Printing Seq
    --> Click the New Button then Sequence Details form are open.
    --> Then select A/R Invoice on Object cell
    --> Select all the layout
           1 First COPY ORIGINAL FOR BUYER
           2 Second COPY DUPLICATE FOR TRANSPOTER
           3 Thirth COPY TRIPLICATE FOR ASSESSE
           4 Fourth COPY EXTRA FOR ACCOUNT
    --> Save it.
    And the check the Print preview
    File -->Print Sequence --> Select the Print option.
    Regards
    Kamlesh Naware

  • How can I print and email a report with a logo?

    How can I print and email a report with a logo?
    Is this possible??

    hi ravikant!
    im talking about reports, not forms.
    i bet se78 is for forms and oaer is for report.
    because my logo is displayed on screen, using html-top-of-page.
    but at the time of printing and email, internally, alv grid is converted into alv list, and alv list doesn't support having a logo.
    That's my know-how of the situation.
    Do you have a way with it???
    Please advice.
    Thanks a lot!

  • How can i copy standard forms? et.al.

    good day experts.
    i would like to ask the following:
    A. About FORMS...
    1. How can I copy the whole standard program of a form written/designed in SapScript to make a "z_xxxxxxxxx program"?
    2. How can i check the print program of a certain form?
    3. How can I convert sapscripts form into smartforms?
    B.About REPORTS...
    4. How can i set the page length and width of a report?
    5. How can i set the margins(left, right, top, bottom) of a report?
    Please give me details/steps to do on each questions.
    Thanks a lot. Rewards will be given.

    A. About FORMS...
    1. How can I copy the whole standard program of a form written/designed in SapScript to make a "z_xxxxxxxxx program"?
    use tcode SE37 to create a NEW form with the name z_xxxxxxx, and in any of edit screen, you can follow the menu path "Form -> Copy From ...", choose the standard form.
    2. How can i check the print program of a certain form?
    There are some database table for store the information, such as, TNAPR ... and so on.
    3. How can I convert sapscripts form into smartforms?
    It's something difficult to covert sapscripts into smartforms, for more details, you can read the SAP COURSE BC470.
    B.About REPORTS...
    4. How can i set the page length and width of a report?
    In the ABAP editor, put the cursor on the keyword REPORT, and press F1, you will get what you want.
    5. How can i set the margins(left, right, top, bottom) of a report?
    Use WRITE and SKIP.

  • ) how can we print the bar code in SAP_SCRIPTS?

    ) how can we print the bar code in SAP_SCRIPTS?

    hi Pavan,
    barcodes wil be generated in the printer itself, if you give <BC>&HD_GEN-MATERIAL_NUMBER&<> then you have a value for "Barcode" .
    Adding Your Own Bar Code:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
    barcodes in SAP
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Print Unique Indicator as a Barcode
    The printing of unique indicators of elements (reference numbers of records, case indicators, or document numbers) as barcodes is controlled by SAPscript forms.
    SAP delivers a common SAPscript form based on the SAP barcode type AUFNR for records, cases, documents and incoming post items.
    To create another SAP barcode type, you can copy the SAPscript form RMPS_BARCODE and then adjust it to your own requirements. Then you have to define the new form using the following attribute names in the table SCMGPARAM:
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    hope this helps you
    Regards,
    Jayant

  • How can I print some pages from multipage report

    Hello,
    I have created a multipage report in word. I would like the user to be able to print the pages selected (as in word printing: pages: 1, 2-3); 
    I am using Office 2007 pro, the LabVIEW Report Gen Toolkit, LabVIEW 2009, and Windows XP.
    I used the suggestion in thread:
    http://forums.ni.com/t5/LabVIEW/How-can-you-print-a-single-page-of-a-multipage-report/m-p/155233 , modifying the print VI that comes shipped with LabVIEW: NI_ReportGenerationToolkit.lvlib:Word_Print.VI.
    first of all I put two integer constants on "From" and "To" in the Invoke node (PrintOut), but Labview return an error:
    Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi -> print2.vi
    Then I searched for PrintOut Method in word 2007 Reference guide, and I saw that for using From and To the Range field must have the string  wdPrintFromTo;
    I insert wdPrintFromTo string  in RANGE Field and tryed.... same error......
    After that I change approach; removed all constants and used the field Pages; I put a string "1-2" connected to this field and now the printer respond, but all pages was printed!
    What's wrong?
    many thanks
    Attachments:
    print2.vi ‏18 KB
    parte comune.doc ‏43 KB

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How can I print to hp photosmart all in one 7280 from ipad

    How can I print to hp photosmart all in one 7280 from ipad
    This question was solved.
    View Solution.

    Hi,
    Although the C7280 is not AirPrint enabled, you may still print through the local network using the HP ePrint mobile app.
    you may find the steps to get and use the app in the following document:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02775166&cc=us&dlc=en&lc=en&product=3204785&tmp...
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can I print out the contents of my hardrive

    I have a hardrive with about 200 video clips and need to print the titles for cross refrerencing. I was just going to "grab" screenshots but this will take about ten sheets of paper. How can I print out a list of all the files on the drive?

    I tried this Finder drag method & discovered that it is very important to set the blank TextEdit document to plain text before the drag (from the format menu or with Cmd-shift-t). If you don't, TextEdit attempts to load the content of the files!
    Once I discovered this, I tried the method with Find (Cmd-F) results & it works for that, too. This means that by choosing the right combination of search location(s) & search criteria, you can extend the method to filter the list to just about any files you want, which could be very handy.
    For instance, set the "Kind" criteria to "QuickTime Movie" & location to "Computer" & you get a list of every QT movie. Or set the search location to the folder containing the movies of interest & you get all of them, including ones in subfolders. You could also use the 'date created' or other search criteria to filter the list to a specific subset of movies (or whatever).
    If you need to do this often, you could create one or more 'Smart Folders' with the criteria preloaded for each search.
    The only drawback I see for either Finder based method is the full path one. If you are getting results from just one or a few folders, Find & Replace can delete any of the path name fairly easily, but it becomes a chore if there are a lot of different ones. Some other text editor, like TexEdit Pro, that supports grep searches would be handy here, but since I'm not up to speed on grep, someone else will have to explain how to use it for this, if they want.

Maybe you are looking for

  • How do I upload a website created with Muse using FileZilla?

    Hi, I created a website using Muse.  Everytime I try to upload the website through Muse, the uploading crashes.  The assets folder contains many large pdf files, so I think that is part of the problem.  I was able to upload the large pdf for the Muse

  • Issue with fetching a record from IHPA table with PARNR value as condition

    Hi All, I am trying to fetch a particular record from IHPA table where i am giving the OBJNR number, PARVW and PARNR as customer no. , But I am not getting any record  but if i will give OBJNR and PARVW it will generate a record with having same PARN

  • Cannot Embed font into InDesign PDF

    I am on ID CS5 Win7 and when exporting to PDF smallest file size get this message. I bought the font form Comicraft and used it before In Ilustrator without probolem, but this is my first time using the font in InDesign. Now I am just trying to send

  • QS41 and QS51- code group error

    Hi, I am trying to create new code groups in QM. i have maintained the defect classes and the catalog types. then in QS41 I have maintained the code groups for the catalogs along with the codes. All the code groups are in released status. In the next

  • Interactive Reporting: master-detail report

    Hi, I wonder if it is possible to have a kind of master-detail pair of reports. For example I have one report containing a crosstab with product groups in the down "dimension". When I click on one of those product groups a second report should appear