Initiating report printing from a web page to a network printer

I want to print to a user's network printer from a servlet. My development environment is a single machine so everything works just fine. The production environment is 3-tiered -- database server, web server and client. In the 3-tiered configuration the PrintReport class executes on the web server and seems to get lost. How can I print in the 3-tiered environment and still give the user the chance to change the printer or the print attributes? My java code currently displays a print dialog box to the user in the 1-tier environment.

I don't think you're going to be able to do that from a web page. Imagine if you visited my site and I decided that your printer should print every image in my "Special Donkey Pictures" directory...
You might be able to create an applet that you can feed the webpage into - into a JTextPane for instance, implement Printable and print from that. I say that without any real knowledge of Applets or what sort of security/signing issues there might be with that.

Similar Messages

  • Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed

    We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
    For AIR : I tried the thread Re: AIR and PDF showing/silent printing

    Hey CodeMonkey & Ross,
    Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
    Thanks guys,
    Lox

  • Printing a selection from a web page, word document etc.

    It embarrasses me to say, I cannot find a way to print a selection--a paragraph for example--from a web page or a Word document. In Windows it's done with a few mouse clicks: file/print/selection. I'm sure there must be a simple way to do it in Leopard, but what is it?

    While there is no "print selection" command, you can use one of the globally available services to open a new window in textedit containing your selection, then print it.
    Select something and then go to Safari>Services>TextEdit>New Window Containing Selection
    and a new textedit window will open with your selection pasted in. Now you can print it.
    I suppose if you do this a lot, you could write a short applescript that'll do this, print it, and quit textedit, and then stick the script in the script menu. Just a thought.

  • Why can I not print anything from a web page?

    Why can I not print anything from a web page?

    Thank you, but I still haven't solved my problem. I tried the reset suggestion. But I cannot find print.print_printer preference. Maybe the word "printer" is to be replaced with the name of my printer. But because of the warning that making any changes is a very dangerous thing to do, I hesitated to do anything.
    I have located the Print to file option, but it is not checked.
    This problem did not exist before the Firefox update of about 6 months ago. Today I downloaded the latest Firefox update, hoping that would solve my problem, but it did not.
    Thank you for your continued assistance.

  • Suddenly, system produces a "microsoft image writer," freezes, then crashes when I try to print from a web page. This is new, just past week or so.

    For the past week or two, when I desire to print from a web page or email and hit the "print" command, instead of my printer name the printer window displays 'microsoft document image writer." Then it asks me to save (in which case it appears in my documents) or print to file. Then, if it works, it produces a window with an image of the page. And once or twice, I can then print. But usually, it produces a blank screen, an endless hourglass, a "not responding" message, and then the blue screen of death.

    -> Problems printing web pages
    * http://kb.mozillazine.org/Problems_printing_web_pages
    -> [Firefox hangs]]
    * http://kb.mozillazine.org/Firefox_hangs
    Check and tell if its working.

  • Recently, when I try to Print from a web page the printer will only print 1/2 a page.

    Recently when I try to print from a web page or e-mail, it will only print the left side of the page.  My printer is a Photosmart Plus B209a.

    This article should help resolve your partial pages:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01892627&cc=us&dlc=en&lc=en
    Give the steps listed under your operating system 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.

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    <a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    <img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    <span>Harry</span></a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • Acrobat crashes when creating a PDF from a web page

    Whenever I ask Acrobat to create a PDF from a web page, it crashes halfway through the process.  Here is an example from the BBC:-
    http://www.bbc.co.uk/news/science-environment-19585341
    Printing to PDF from the browser does not produce an accurate document.  The font is too big, and most of the pictures do not appear.
    I use Acrobat X Pro version 10.1.4.
    This is a PC problem.  On the Mac it works.

    The problem I mentioned is peculiar to Acrobat 10 and also to my PC.  On a Mac I can create PDF's from webpages normally.
    I also notice that when printing to PDF from Opera only the first page comes out.  (Using Firefox all pages are printed to PDF.)

  • Using Adobe Pro X I cannot create a PDF from a web page.

    After a recent upgrade from a previous version of Firefox, I am now unable to create a PDF from a web page using the Adobe Pro toolbar on the web page.  A "save as" box appears and then the conversion process dies.  I can print the page using Adobe Pro as my printer and it works fine. I can create other docs with Adobe Pro.   How do I fix this on my browser?
    Thanks.
    WSC

    Browser Troubleshooting
    "Can't view PDF on the web"
    http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
    "Display PDF in browser"
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Be well...

  • Embedding Crystal Reports with parameters in web page

    Hi,
    I have created a sample report file and configured it with a parameter field. On embedding this report file in the web page, as expected I am prompted to enter value for the parameter. After entering value and clicking OK, CrystalReportViewerServlet delegates the call to the custom JDBC connector implementation which is the data provider. However, the web page doesnu2019t show the retrieved resultset but shows a page with some text like this:
    {"update":{"children":[{"children":[
    {"args":{"curPage":1,"numPages":"1"},"cons":"bobj.crv.newSelectPageControl"},{"args":{"searchText":""},"cons":"bobj.crv.newSearchTextControl"}
    ],"cons":"bobj.crv.newToolbar"},{"args":{"displayDrilldownTab":true,"initTabIdx":0},"children":[{"args":{"isMainReport":true,"label":"Main Report","viewStateId":"1"},"children":[{"args":{"content":"\r\n 
    On debugging I could see, that the parameter value from the prompt is correctly passed from the CrystalReportViewerServlet to the custom Connector (i.e., the sql query is updated with the parameter value) and the connector fetches the data also.
    I also tried embedding another .rpt file with few parameter fields configured (where user input values are just passed to the details section of the report for display). However on running this web page also I get the same error.
    Report files with no parameter fields configured are working fine when embedded in web page.
    Any thoughts would be appreciated.
    Regards,
    Ria

    I would take a look at running our simple [sample application |http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/307224d2-3d11-2c10-fe86-d87bab901bee&overridelayout=true]that views reports to see if you have the issue there.

  • Create a PDF from a Web Page

    I was on Acrobat pro 6.  Now I am trying out Acrobat X pro ("v10").
    1.  I create a pdf file from a web page.  When I click on a link in the new pdf file, it automatically opens that link in a web browser.  Previously, in v 6.x, it defaults to "Append to the Document".  How can I set Acrobat X Pro to default to "Append to Document" ?
    2.  I find the pdf file created from a web page has no page numbers.  Again, in v6.x, there was page numbers in those files.  How can I get page numbers included in the header/footer?  Is the header/footer configurable?
    3.  In v6.x, when I want to convert a web page (into pdf) that is behind a password -- because it includes links, whereas printing to pdf does not -- I would first get the login page (in pdf).  Then I can type in my password in the pdf file and click on go (right click and select Append) and I would get the next page in pdf.  Now, v10 no longer does that.  I keep getting different errors depending on the web site.  e.g. I was testing on this web site, and get "SyntaxError: invalid XML tag syntax".  Am I missing something or is there a "new" way to get the same result in v10?
    TIA

    Hi paulp14382584,
    It seems that you have removed the Create PDF from webpage tool from the toolbar by mistake. Please don't worry I will help you to get this issue fixed.
    1) Open the Acrobat on your computer.
    2) Right click on the toolbar & select Edit Current Tool Set form the list.
    3) Edit tool set window will pop up on your screen.
    4) Please Click on the 'Create'  option from the list on the left hand side & then select ' PDF from Web-page' from the drop down list.
    5) Then click on the small button ( + & arrow sign towards up ) to add it to the tool bar.
    6) Hit Save to confirm the changes.
    This will add the Create PDF from web-page tool on the tool bar.
    Let me know if you experience any issue.
    Regards,
    Aadesh

  • Posting an XML Variable to a BLS Transaction from a web page

    I am working in xMII 11.5 with all the latest service packs. I know this is probably a really basic question but I am stumped.
    I am trying to pass a multi row and multi column XML data set from a web page into a BLS transaction (actually, two of them) in order to populate the parameter. I want to use the Web Service interface to the transaction. I have tried using parameters on an Xacute Query in an Applet as well with an equal lack of success. I cannot persuade the transaction to see the incoming variable as an XML data type. I have tried encoding and decoding and string to xml conversions and nothing seems to successfully allow the data set to be seen withing the BLS as anything but a string. The String to XML action will not handle the number of columns in the dataset though it seems to work if the data set has only one column. The data set is formatted in the proper "Rowsets/Rowset/Row" format. I have considered writing the data to an XML file on the server (I know I can deal with that) but that is not acceptable in this application.
    Can someone share the secret with me?
    ...Sparks

    Parameter value:
    r1d1,r1d2,r1d3;r2d1,r2d2,r2d3;r3d1,r3d2,r3d2
    Pass thru String List to Xml Parser with delim ";"
    <Row>
    <Item>r1d1,r1d2,r1d3</Item>
    </Row>
    <Row>
    <Item>r2d1,r2d2,r2d3</Item>
    </Row>
    <Row>
    <Item>r3d1,r3d2,r3d2</Item>
    </Row>
    Repeat on each row/item and pass thru String List to Xml Parser with delim ","
    <Row>
    <Item>r1d1</Item>
    </Row>
    <Row>
    <Item>r1d2</Item>
    </Row>
    <Row>
    <Item>r1d3</Item>
    </Row>
    Of course, your columns aren't flat but they are easy to ref, to get "column 2" for example:
    StringListToXml_1.Output{/Rowsets/Rowset/Row[2]/Item}
    So now you have rows and columns. Assign your data to your BAPI structured as needed.
    We have passed complex XML via the SOAP interface in 11.5, but it involved some "hacks". Basically we passed the sterilized XML via a String Type Parameter, and then unserialized it inside the BLT.  
    I have been told on this board that there is a solution to passing XML data vie the SOAP interface using ref docs, but i have never personally seen a working example.

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • How to download an animated .gif from a web page

    how do i download to my mac an animated gif that is on a web page....when i want a picture or text or something like that i just ...apple shift 4 and "take a picture of it" ...but i want the animation..i have never had to do that on this mac.....a windoze person from the site(chat site) said just right click but my wireless mac mouse doesnt do that....i would appreciate any help.....i do know how to down load from a site that has downloadable .gifs...you just click the download sign they have and no problem....but this is just a random animated .gif from a web page ....i hope my ques is clear....thank you

    Drag and drop it from the webpage onto your desktop. Note that it won't remain "animated" while you're looking at the file's icon, but it should work if you build it into a new website.
    And you can right-click with a Mac mouse - you just have to set it up to do so in System Preferences. (Set the right side of the mouse to be a "secondary click".)
    Matt

Maybe you are looking for

  • Connecting Power Query to SharePoint Foundation 2010

    I'm looking to set up PowerQuery in Excel 2013 to link into the various lists on our SharePoint 2010 Foundation server. I have established the connection URL. The SharePoint Foundation 2010 server is on the same LAN I'm connected to, so I've opted fo

  • Audio Scratches when viewing on outside monitor

    I'm not certain why this happens. When I go to view the timeline outsourcing it to a TV monitor. I get a warpped sound along with scratching. It sounds great in the computer, but that doesn't help me. I can never get a clean transfer to burn on DVD.

  • Problem loading Compact Flash to PSE6

    Never had a problem until today. Loaded a SDHC (NEF files) no problem. Tried loading Compact Flash (NEF files) and got the following message: "Nothing was imported. The file(s) or folder(s) selected to import did not contain any supported file types,

  • Commit statement in user exit

    Hi All, We found that while doing PGI , it takes some time to COMMIT the table VBUK. Due to which we are getting old values of VBUK-KOSTK field while executing select query at later point of time in the flow. My question -- Can I use COMMIT WORK stat

  • Not all calendar entries sync with icloud

    Because Mavericks no longer allows you to sync Outlook calendar entries directly to iOS devices, I've started using the Mavericks calendar. But not all of my calendar entries sync to iCloud and I don't know why. If I make a calendar entry in Calendar