Html print

we are designing an xdp form to be rendered by the adobe forms server as an html form.I am looking for a print button that will print the pdf rendered version of the form with the data from the html.in other word when the client clicks on the print button on the html form the printout is actually a pdf output.
we don't have a choice in this,the form has to be html to the client.
thanks
Karl

What you would need to do then, is to have a submit button on the form that submits the data back to a servlet (or whatever). That would then use LC Forms API to merge the data with the template and create a PDF.
At this point you could either send the PDF back to the client browser where they would print it, or the server could print the PDF to some network printer. There's actually an add on product to LC Forms called LC Print that would be better suited for doing server side printing if that's the option you chose.
Chris
Adobe Enterprise Developer Support

Similar Messages

  • Page breaks in (html) printed apex report

    I am having a strange problem that appears to be related to APEX page template.
    I have a report that is html generated by a PL/SQL function. I need to have page breaks in the printed report at specific locations. I am adding this style to the html output of the function:
    <STYLE>
    DIV.pageBreak { page-break-before: always; }
    </STYLE>
    and I insert this at the locations I need breaks:
    < D I V CLASS="pageBreak"/>
    (without the spaces in DIV)
    (found this technique here: http://www.unagibay.com/DesktopDefault.aspx?tabindex=1&tabid=100&itemid=1821 )
    This works perfect when I run the report in IE, but FireFox is "ignoring" the page breaks. However, if I take just the output of the PL/SQL function in an html doc, FireFox works fine (breaks at the proper places). This makes me believe something related to the "page wrapper" content generated by APEX causes FireFox to not handle the breaks.
    I have tried copying and editing the Popup and Printer Friendly page templates, but I either remove too much and the page doesn't render, or the page breaks don't work.
    My questions for the APEX gurus are:
    1. Is there an "approved" way to get page breaks in the printed version of an APEX report, or is there a better way to do what I need to do.
    2. What is the minimum contents for a page template (what can I safely remove).
    Thanks,
    Bill

    Hi Owen,
    the page breaks are inserted before/after the section.  Expand the report structure window and make sure that the properties window is open below.  Once you click on the section part, you will see where you can insert the page breaks - the check boxes will appear in the properties.
    yes on the second part - just insert the page break between the data providers and then repeat the header for the data provider on the pages (also check boxes on the properties tab)
    Good luck

  • Excel and HTML printing format in APEX 3.0 question

    Hi all,
    I've followed the thread Problems with PDF printing, using Apache FOP! and Carl Backstrom's instruction in this link
    http://carlback.blogspot.com/ to setup print server. Just only 2 "PDF and Word" format is working and the other 2 "html and excel" don't work. When i try to use the "Excel" format to print the report, all i see is %PDF-1.3
    %ª«¬
    4 0 obj
    << /Type /Info
    /Producer (FOP 0.20.5) >>
    endobj
    5 0 obj
    << /Length 795 /Filter [ /ASCII85Decode /FlateDecode ]
    >>
    and when i witch to "html" format and click on the link, nothing to response. Do you have any idea about it? what should i set up to use the full print features?
    Thanks,
    Kevin

    Kevin,
    Your options are to print the report as CSV and opening it in Excel (by enabling this under report attributes) or to install BI Publisher as the rendering engine. By rendering engine I mean the system that runs in the background to render your documents. So when you’re saying to print directly from the report, that’s what’s happening in the background: you report data gets posted along with a style sheet to that rendering engine, and you document gets returned so that you can download it as PDF, Word, Excel etc. Please see the following document for more details:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Regards,
    Marc

  • HTML printing in Labview running Sun Solaris

    We are creating html test data files in labview and would like to print them on the Sun Solaris. Labview for Solaris can print the files but just prints the source code (doesn't format the code into nice tables, etc). You can also print the front panel but it resizes all the data to one page (very small and not easily modified). Currently we have to manually open a browser (i.e. hotjava) and then print the files.
    Thanks in advance for any help.

    Hi,
    First the disclaimer...My knowledge of the Sun environment is very limited. Given that; it may be possible to use launch your browser with LabVIEW and pass it a comman line argument to print the desired HTML file.
    Just my 2 cents,
    Regards,
    Juan Carlos

  • NI Report and HTML printing

    Here I have described a problem with the NI Report VIs and printing HTML report on different machines.
    I have made a small app just printing a page with "Hello World" on it. This app was generated on my Windows XP Prof. SP 2 machine at home. My IE version is 6.2.2900.2180.xpsp_sp2_rtm.040803-2158 and the Active-X component used is shdocvw.dll version 6.2.2900.2180, 04.08.2004 13:00.
    The archive contains the app and all sources in LV Version 8.2.
    I want to know from you if this app will run on your machine. Please report if it did or not together with the information which OS you are using and which IE version you have.
    It seems that this VIs want run reliably on all machines.
    Thank you for all those who are reporting.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    PrintHTML.zip ‏273 KB

    I have tested the app on 7 machines in the office. We have 4 LV installations were it worked and 3 which give error 1 in "Print HTML using IE.vi". 6 Installations are on XP Prof. SP2 and one is Windows 2000 SP4.
    All XP machines should be the same because we have them generated from one image and we have a central system update here. I think I have to make a look to see any differences.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • HTML Printing with JEditorPane table borders is missing...

    Hi,
    My application prints HTML reports that was rendered on a JEditorPane,
    actually the printing is working fine (almost)...
    After reading a lot of posts and the Printing API i've found a very god aproach to print HTML documents... the DocumentRenderer:
    http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    I'm having a strange problem that I was unable to figure out by myself...
    Table borders and table background images never get printed...
    ex: <TABLE BORDER=1 ...
    <td background="image.gif" ...
    On the JEditorPane it shows just fine but, when the page is printed there's no border or table background pictures...
    Everything else is printed ok including images, small fonts, etc...
    Does anyone else had the same problem ?
    Thanks for any help

    The borders present an interesting problem created by the way the DocumentRenderer class finds for printable Views in the HTML. DocumentRenderer searches recursively down the tree of Views starting with the Document's root view looking for leaf views, those with no children. The DocumentRenderer only paints these smallest chunks of text to the printer graphics context. This usually works because leaf views do not usually contain anything paintable.
    The problem with borders is that they represent paintable areas of branch views, those with children. When we only print leaf views, these areas get ignored.
    I see two logical solotions to the problem:
    I. Change the code of the recursive printView method of Document Renderer to print any border that intersects with the current printable clip rectangle.
    II. A much more elegant solution would be to print any view, branch or leaf, that fits within the current printable area, and cease the recursion there. This would include the borders.
    It would also increase efficiency by terminating the recursive method earlier by painting larger chunks of the HTML. A strange problem pops up when I try this, however. When the size of the chunk to be printed gets too big, nothing is printed at all. In the article this is mentioned in the area of large images. "Lastly, large icons do not print. Java simply refuses to render them on the page. Small icons work quite well, however." The same holds true for any large View.
    I have not been able to quantify the exact size where this failure occurs, nor what is causing it. If anyone can tell me what causes this problem, it should be fairly easy, depenging on the cause of the problem, to rewrite the class to print borders and also does lots of other good stuff. I have already coded the new and improved printView method, but this size limitation has made it unworkable.
    Simply stated, if I can figure out why the class does not print large icons, the rest should be easy.
    Any suggestions would be appreciated.
    Thanks,
    Kei Gauthier

  • Help with html printing

    hi all
    i wonder if there is any command in html that inforce the printer to start print from the top of the page (A4 page)?
    thanks

    Hello Naama,
    >> i wonder if there is any command in html that inforce the printer to start print from the top of the page (A4 page)?
    HTML was not designed for printing so there isn't any HTML tag for page break. The best (and the only one I know, without line counting) solution is to use CSS - http://www.w3.org/TR/CSS21/page.html#page-breaks .
    In some cases, this can be a perfect solution (usually, when the page break depends on a specific, and unique object on page, like date on the letter head, or name in a new invoice, or a signature in the bottom of the page). It can also provide a decent solution when printing large tables, provided you are using the THEAD tag (you might find the following helpful - Re: placing <thead> and </thead> around headers ). In all other cases, this is a trial and error game.
    Regards,
    Arie.

  • Window HTML Printing Issue

    Hi,
    I'm opening a new window in adobe air, which has a html page
    that needs to be printed out. The code I use for printing is below.
    function doprint()
    var pjob = new window.runtime.flash.printing.PrintJob;
    if ( pjob.start() )
    var poptions = new
    window.runtime.flash.printing.PrintJobOptions;
    poptions.printAsBitmap = false;
    try
    pjob.addPage(window.htmlLoader, null, poptions);
    pjob.send();
    catch (err)
    alert("An error occurred when trying to print report");
    else
    alert("Printing of this report was cancelled");
    The issue I seem to have is that the print out is completely
    anti aliased, so the text seems really blurred that it's hard to
    read the information when printed. I have set print as bitmap
    option to false so that it prints in vector, but I still get the
    same issue. Is there a way of resolving this. I think it may also
    be down to webkit's anti-aliasing the html before print. Hope some
    one on the forum can help me with this issue.
    Cheers
    Prad

    Hi Prad,
    Sorry this is just the way things are , I trying to do
    exactly the same thing as you but I get the same results as you and
    have hot found a workaround yet.
    I find it totally incredible that Adobe of all organisations
    could ship a product that cannot print properly. If Air wants to
    become a credible desktop application environment then core
    functionality such as printing should be available. All other
    Webkit based apps such as Safari seem to be able to print so I'm
    not sure what Adobes reasons are for breaking printing so badly,
    hopefully in the next relase of Air they would have fixed it.
    Adam.

  • HTML Printing mode

    Hi everyone,
    My Icon target is:
    f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.::&DEBUG.::::YES
    "TARGET=BLANK"
    Javascript onclick
    window.print() -- to have the printer options
    With this, my page not in printing mode appears on top and the printer options is just beside. I have an other page that is in printing mode with my target=blank. But, I want my printing mode page on top with the printer options.
    Is there somebody can help me ?
    Thank you. Bye.

    Why are you asking a CSS question in a Java/JSP/JSTL forum? I would rather use a CSS forum for that. That HTML code is unnecessary too. Just post relevant code only, such as that CSS snippet.
    Anyway, it may differ per web browser if this page rule will be picked up and it may also be a client side setting regarding printer settings. Nothing to do here.

  • HTML Printing

    Anybody know of a simple program that will
    format an HTML file and send it to the printer ?
    Can I use command line arguments for IE or netscape
    or some other browser that would print an HTML file?
    This would be helpful since TestStand has an HTML
    report generator (and my next CVI program will
    probably generate HTML as well :-)
    Thanks in advance,
    Ralph

    you can create several properties for each paragraph view.
    such as following:
    paragraphYOffset - set it inside the layoutMajorAxis(...) of root view.
    pageEdgeY - the same
    just cast child views to ParagraphView
    for (int childIndex=0; childIndex<offsets.length; childIndex++) {
    if (getView(i) instanceof ParagraphView) {
    ParagraphView childView=(ParagraphView)getView(i);
    childView.paragraphYOffset=offsets[childIndex];
    childView.pageEdgeY =calculatePageEdgeY(...);
    after that inside layoutMajorAxis(...) of paragraph you have both coordinates.
    But i think you really don't need both these Y.
    All you need is the difference between them.
    diff=pageEdgeY - paragraphYOffset;
    You start from first row and check if current row height can be placed on previous page...
    if sum of all previous rows and current row height exhausts you should move the rest of rows down.
    best regards
    Stas

  • Java HTML Printing

    Here is the code (with each previous attempt just commented out as it didn't work) for my attempt to print HTML from an editor pane
    Can anyone see why any of my attempts don't work? The first one just prints the code all on one line. The second doesn't do anything. And the third gives me a runtime error at the line marked.
    public void Print()
                    //attempt 1:
                    PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                    DocFlavor flavors[] = service.getSupportedDocFlavors();
                    for(int i = 0; i < flavors.length; i++)
                            System.out.println(flavors.toString());
    DocPrintJob pj = service.createPrintJob();
    try
    Doc doc = new SimpleDoc(dialog.info.getText().getBytes(), DocFlavor.BYTE_ARRAY.AUTOSENSE, null);
    pj.print(doc, null);
    catch (PrintException e)
    System.err.println(e);
    //attempt 2:
    PageFormat pf = new PageFormat();
    Printable.print(dialog.info.getGraphics(), pf, 1);*/
    //Attempt 3:
    PrinterJob printJob = PrinterJob.getPrinterJob();
    PageFormat pf = printJob.defaultPage();
    pf.setOrientation(PageFormat.LANDSCAPE);
    double smallMargin = .4 * 72;
    Paper paper = pf.getPaper();
    paper.setImageableArea(smallMargin,smallMargin,(paper.getWidth() - (2*smallMargin)),(paper.getHeight()-(2*smallMargin)));
    pf.setPaper(paper);
    Book book = new Book();
    book.append((Printable)dialog.info.getGraphics(),pf); //<------------ error here, type cast error.
    printJob.setPageable(book);
    try
    printJob.print();
    catch (Exception e)
    System.out.println("Print Exception " + e);

    I had this problem as well and found some sourcecode on the internet.
    Try this link
    http://www.ftponline.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    Somewhere in the text you can download DocumentRenderer.java.
    You have to give your JEditorPane to the DocumentRenderer and it will do all the stuff.

  • HTML PRINT QUOTE

    Hi,
    I am completely new to XML Publisher.
    I want some help from you seniors.
    I am doing customization in one of the HTML Quoting (E-Business Suite) pages.
    I added one column to the pre-existing report.
    As per the documentation I have added the new attribute in the HeaderVO.xml
    as below:
    InvoiceToCustAcctNumber is my custom attribute
    QuoteHeaderId is pre-existing attribute
    <ViewAttribute
    Name="InvoiceToCustAcctNumber"
    IsQueriable="false"
    IsPersistent="false"
    Precision="51"
    Type="java.lang.String"
    AliasName="INVOICE_TO_CUST_ACCT_NUMBER"
    ColumnType="VARCHAR2"
    Expression="INVOICE_TO_CUST_ACCT_NUMBER"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="51" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="QuoteHeaderId"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="22"
    Type="oracle.jbo.domain.Number"
    AliasName="QUOTE_HEADER_ID"
    ColumnType="VARCHAR2"
    Expression="QUOTE_HEADER_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    I also modified the Java file: HeaderVORowImpl.java as follows:
    Added:
    public String getInvoiceToCustAcctNumber()
    return (String)getAttributeInternal(52);
    public void setInvoiceToCustAcctNumber(String s)
    setAttributeInternal(52, s);
    protected static final int INVOICETOCUSTACCTNUMBER = 52;
    After compiling the changed Java file and Apache bounce when I try to access the page...I get the error:
    oracle.jbo.AttrValException: JBO-27019: Get method for attribute "QuoteHeaderId" in HeaderVO could not be resolved.
    I do not understand where I am wrong.
    Any help whatsoever is highly appreciated.
    Thanks in advance.

    Which documentation are you following?
    Are you using Jdev to make your changes or manually changing the code? Are you putting the compiled files at proper location?
    --Shiv                                                                                                                                                                                                                                                                                                                                                               

  • HTML - Printed Doc Frustration

    OK - Tried everything - even left it running all night - it
    was still processing this morning - 12hrs later.
    What's really off is that I have more than 4 docs, it only
    gets as #4, and this is huge, ie it contains ALL the chapters - at
    which point it "stops".
    Also - it does the pages in reverse order, and the Topics are
    not in the order designated in the Table of Contents.
    I have tried Peter G's ideas but have had no joy so far.
    Any hints/tips, suitable medication will be much appreciated.
    I just know it's going to be something simple that I've missed.
    Thanks Al

    There are quite a few solutions on my site so it would help
    to know what you have tried.
    My way forward would be to create a new print layout with a
    small number of topics and see how that goes. Keep going back and
    adding more until it gags.
    Also what template are you using?
    Have you tried using the one of the supplied style sheets on
    all your topics? Create a copy project and select all topics to try
    that.
    Post back with how you get on with those ideas. Sorry but I
    am not licensed to supply medication.

  • I recieve my reciepts from all of my Apple purchases via email to my email cllient "MS Outlook 2003" on a Windows 7 Home Premium platform. I cannot format the print appearance of HTML documents within Outlook and the print border cuts of the last digit?

    I use MS Outlook as my email client under Windows 7 Home Premium and when I receive a reciept from Apple for purchases made for my iPhone (Stores or iTunes) the HTML formatting cuts off the last digit of the price paid on my eReceipts (the only receipts I get). Outlook 2003 does not allow for HTML print formatting since they (HTMLs) are formatted from the source (Apple). Can you help me to get Apple to fix this or find a workaround?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • How can I print a html Using javax.print

    Hi friends,
    I am in big trouble . I use following code to print a html file using javax.print api.
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class PrintPS
         public static void main(String args[]) {
              PrintPS html = new PrintPS();
         public PrintPS() {
         DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_HTML_HOST;
         PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
         aset.add(MediaSizeName.ISO_A4);
         aset.add(new Copies(1));
         aset.add(MediaTray.MAIN);
         PrintService pservices = PrintServiceLookup.lookupDefaultPrintService();
         if(pservices==null)
              System.out.println(" printer not found");
         if (pservices!= null) {
         System.out.println("selected printer " + pservices.getName());
         DocPrintJob pj = pservices.createPrintJob();
         try {
         InputStream fis = new FileInputStream("abc.html");
         Doc doc = new SimpleDoc(fis, flavor, null);
    System.out.println("printing started ");
         pj.print(doc, aset);
    System.out.println("printing completed");
         } catch (IOException ie) {
         System.err.println(ie);
         } catch (PrintException e) {
         System.err.println(e);
    This code gives me "sun.print.PrintJobFlavorException: invalid flavor"
    So i use all four TEXT_HTML flavor but i do not find the solution.
    I am able to print pdf, jpg, gif files but i can not able to print txt and html file.
    My printer supports txt and html printing becaue i do printing directolly by browser's or notpad's print command .

    Hi friends,
    I am in big trouble . I use following code to print a
    html file using javax.print api.Use Code Tags
    http://forum.java.sun.com/help.jspa?sec=formatting
    My printer supports txt and html printing becaue i do
    printing directolly by browser's or notpad's print
    command .Notepad & your browser prob. convert to the HTML/text(1) into the printers native format.
    1) I am suprised that it does not print text.

Maybe you are looking for

  • Install of 0s9 on 10.4 does not work.

    I've followed install (from 9.2.1 CD) instructions and find the 9 system is not recognized after restart, and cannot be blessed. I also tried copying the system folder, etc. directly to hard disk, but again, I get message that 9 cannot be updated on

  • No Sound on iTunes exports on Apple TV

    So I finally got to use iMovie '09 yesterday, and really enjoyed the new features. I threw together a short film featuring my baby girl, and exported it, as usual, in large, medium, and mobile to iTunes and my MobileMe gallery. So far so good.... The

  • Selecting Printer defined in VV22 Transaction for Smartform printout

    Hi All, Can any one help me. My requirement is to print a picking list output using smartform automatically when ever a transfer order is generated. The main problem is i have to select the printer which is defined in VV22 Transaction for that partic

  • CUE Call Redirect not working

    Hi, I have a CME box connected to a CUE (running on ISM on the same router).  Everything works fine so far, but I have a strange problem with the "call redirect" function in CUE: It´s only working when I´m calling the CUE script from an internal phon

  • Auto fill URL's

    I have a non earth shaking question that seems to be the opposite of everyone else I find in search. Why do some URL's always come up in the address line when I start an address--for example all I have to do is type an "A" and amazon comes up even if