Printing in client side

how can i print in the client side?
my printDialog appears on the server side, why is this?
pf = pjob.pageDialog (pf);
paper = pf.getPaper ();
pjob.setPrintable (new AppletPinProcessor (aRecord), pf);
boolean doPrint = pjob.printDialog();
thanks :)

JSP code runs on the server. It does not run on the client. You cannot print on the client (web browser) using JSP. It is impossible.
You would need something on the client side that can print what is needed

Similar Messages

  • Crystal report printing in client side

    Hi ...
    I have using asp.net web app with crystal report version 10.5.3700.0
    I have uploaded the project and database in the below link. Check out.
    http://www.2shared.com/file/vHTSGl13/ASPnet_Webapp_using_CR_Rpt_Pri.html
    http://i52.tinypic.com/2rdds7d.jpg
    I have few requirement in the crytsal report asp,net page:-
    1) If user click Print button of crystal report viewer toolbar then it goes to PDf then its show me all of my pages instead of showing me the current page on which i click print.
    2) I want to use client side print..if user click on a my print button then i need to show print dailogue like image above in that if user click print then i need to print that current page.. let us consider im viewing I3 Invoice number using Crysatl report viewer Navagition then it show me as 3/7 in toolbar if user click on my print button then i need to print the page 3 only.. coz user clicked print on Page3.
    3)My asp.net web app is in Hosting server if user click my print button then i need to show client print dailogue and it will show my cleint connected printer. Here crytsal report toolbar and other things should be hide. It should be like what we have designed in crystal report that alone should be get printed.
    4) One more thing i want is if user gives I4 invoice no. in my textbox1 then click view report button then it will show that Invoice Report now its shows two pages, here if user click print then i need to print two pages coz it has two pages...
    Please do a code using my webapp which is above and waiitng for your codes..
    Thank you
    Note: please do a code so that i can know, i already visited some of the website like http://aspalliance.com/ i didt undertstand how to do so im posting here to get a code.

    *i tried this also but it show me the same only hosting server printer not a client side printer*
    if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
                foreach (String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
                    cboCurrentPrinters.Items.Add(myPrinter);
                cboCurrentPrinters.SelectedIndex = 0;
            //For printers exposed to System account as per MS Kbase
            //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
            //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
            Microsoft.Win32.RegistryKey mySystemPrinters =
                    Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
            foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
                cboDefaultPrinters.Items.Add(defaultPrinters);
            if (cboDefaultPrinters.Items.Count > 0)
                cboDefaultPrinters.SelectedIndex = 0;
    help me in this.. its very urgent needed..

  • How to handle text of iframe to send to remote printer in client side?

    Hello everybody,
    I am having problem to handle the printing text of iframe to send to remote printer. I am using JDK 1.5, JSP and JBOSS. My clients have to print the information displayed in iframe to their remote Printer. I am using javascript code below to print:
    /* CODE IS IN JAVASCRIPT */
         document.frames[frameName].focus();
         document.frames[frameName].print(); But the main problem is that it takes a lot of times about 2 mins. Why is the above code taking so long time? Is it due to javascript code or the printing process? Is there any method or function to send printing text of iframe to printer faster?
    can anyone help me to solve this problem.....
    Thank You.
    Edited by: ritesh163 on Aug 20, 2008 2:45 PM

    ritesh163 wrote:
    Hello stevejluke,
    I am seeking for the suggestion whether it can be done through javascript or there is any other function or method in JSP that can replay javascript code and also work faster.
    Thank you.But JSP has nothing to do with it. JSP lives on the server, not the client. If can't control the client printer, can't know about it, and can't print to it. This is purely client-side, which means not JSP.

  • ADF 11G - Printing on Client Side???

    Hello,
    I'm trying to send to the client printer a file stored in my server.
    Is there any way to do that?
    More specifically, I want to see from the server the client side printers.
    I'm working on ADF 11G version 11.1.1.4. and Weblogic 10.3.2

    You know that your jdev does not match the needed wls server version?
    You can't see the client site printer on the serve. You have to send the file to the client first.
    Then you show the file in the browser and the user can use the browsers print dialog.
    Timo

  • Set printer from client side

    Hi All,
    I am browsing in this forum, how to set printer crystal report at runtime in web application. I find that way, but in server side. I have web application that deploy ini web server and I have end user/client that want to open report in my web application and print it. Could you give any snippet code to do it?
    Thanks.
    Sri

    To print client side you must install the Crystal Reports ActiveX control. The security warning is the same as any other ActiveX control you'd install. Simply click the yellow bar at the top of your browser screen, or follow the directions to install it.
    If you don't want to install the ActiveX control you can use the Pdf print mode instead.

  • Need to change IP address of printer on CLIENT side.

    I'm connected to a network printer (HP 4200 laser) and it's been working just fine. Then the boys in IT changed its static IP address. I need to go into my configuration for this printer and change the IP address so that my Macbook Air (10.9.4) can find this printer. But I can see no other way to change the IP address than to delete the printer and reconfigure it all over again. Is that right? It can't be right. What am I missing? The best I can seem to do is to "Open Print Queue" and then click "Settings" but this is all I'm seeing. There is no way to change the destination IP address on the client side.

    MrHoffman wrote:
    Why aren't your network people using DNS to name the printer?  If they change DNS, then the printer should resolve automatically.
    What a comedian! It was just the other day that I went through a few programs at work and replaced the DNS name with a hard-coded IP address. It seems they are moving the service to a new machine and this is part of their migration strategy. I can't argue with logic like that.

  • CDM and printing from Client side

    Hi all,
    Here I have installed RH9 and Tarantella 3.40. and I have 2 network card.
    First one is eth0 is for LAN and second is for static IP i.e eth1. my
    application server is win2k and I can access application easily. Now my
    problem is I want use client drive mapping here to save users work and
    Client printing for print the reports. Can anyone help how to do that ?
    Thanks Regards,
    Rachana.

    Rachana,
    Can you describe your network architecture again? How many NICs do you have
    on the Tarantella server? What's the name(s) and IP address(es)? How many
    NICs do you have on your W2K server? Name(s) and IP address(es)?
    "Rachana" <[email protected]> wrote in message
    news:[email protected]...
    Hi Esc 27,
    Thanks again,
    I have made changes as per your instructions.
    Problem not yet solve. Now new message I seen in ttatdm "13:41:01
    :00000016:Administrator :Failed to create server channel"
    Prining from tarantella is priority for me. I am seen printer has been
    create session wise in Win2k server, even as per TTA document I created
    LPR port. But here I given eth1 IP address (i.e. my static IP address ) in
    providing lpd field. and name of printer is tta_printer.
    Is it correct to give static IP address for LPR port ?.
    Still I am in same problem kindly please help me.
    Regards
    Rachana.
    Escape 27 wrote:
    Try enabling the WINS server in Array Manager and add it to your W2K
    server.
    "Rachana" <[email protected]> wrote in message
    news:[email protected]...
    Hi Escape 27,
    Thanks for your reply.
    First I tried in array manager to change DNS Name, second I have
    installed
    enhancement module on w2k server. But still I facing same CDM problem.
    In
    w2k server \"C:\Program Files \Tarantella \Enhancement
    Module\ttatdm.exe\"
    I seen this error \"C:\Add device failed with ERROR_BAD_NETPATH\".
    F.Y.I. I am not created Domain here because I have Static IP and I want
    to
    access thought simple Internet.
    help is appreciate.
    Thanks,
    Rachana Salavi
    Escape 27 wrote:
    I assume that when you say eth1 is \"static IP\", you meant this oneconnects
    to the internet.
    What you need to do are:
    - change the external DNS name in Tarantella to use the hostname of
    your
    eth1 interface
    - install the enhancement module on your W2K server
    - enable Client Drive Mapping in array manager
    All users will access the Tarantella server using the hostname of eth1
    Hope this helps.
    \"Rachana Salavi \" <[email protected]> wrote in message
    news:[email protected]...
    Hi all,
    Here I have installed RH9 and Tarantella 3.40. and I have 2 network
    card.
    First one is eth0 is for LAN and second is for static IP i.e eth1.
    my
    application server is win2k and I can access application easily. Now
    my
    problem is I want use client drive mapping here to save users work
    and
    Client printing for print the reports. Can anyone help how to do
    that ?
    Thanks Regards,
    Rachana.

  • Print text file to  client side printer

    Hi all,
    I have a character mode report which will print to a client side dot matrix printer in 6i. After converted to 10g, we cannot print to the client side printer (because we don't want to map so many print queue from the AS).
    So, I try to generate the report to a text file, then use webutil to transfer the txt file to the client PC, and then use Client_HOST to call the window PRINT command to print the text file to the client side printer.
    I have test this is successful, however, when I try to do the same thing to a report with Vietnam character, then it is not.
    The print request is sent to the printer, but the printer have no response.
    But that file can be print successfully if I open in Notepad and then print manually.
    I try to use window TYPE command and COPY command, but still have no luck.
    Can anyone give me some suggestions for this....
    Thanks!

    Qiu (guest) wrote:
    : In the browser/applet, the default "print" button can only
    print
    : screen to local printer, not the data I want. Use Report
    server,
    : I can't directly print to client side printer. Is there a way
    to
    : print data to local printer after press a button?
    Are u using Run_Product function in the when button pressed,
    then u can specify the format in which u want the output, option
    available are HTML and PDF, report server runs the report on the
    server and sends the output to the client machine. On the client
    machine u have to open the file and print it. I cannot print the
    report itself on the client machine.
    Try.
    Sailesh
    null

  • Client Side Rendering on Terminal Servers

    I’m having horrible printer issues on my Terminal Servers such as slow printing, slow to add printers, some applications load slowly because they are enumerating the list of printer (thanks Procmon), slow logons, etc. I'm trying to get Client Side Rendering
    (CSR) disabled. From what I can tell it still appears to be on. Terminal Server are Windows Server 2008 SP2 x86.
    On my print servers I have verified that all printers have Render print jobs on client computer unchecked. I have a Group Policy linked to the OU that the Terminal Servers are in that has
    Always render print jobs on the server set to enabled. Per
    http://blogs.technet.com/b/askperf/archive/2008/02/10/ws2008-client-side-rendering.aspx I have verified that on each Terminal Server in
    HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers the
    ForceCSREMFDespooling value is present & set to 1 so the GP is being applied.
    However I still have tons of entries in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\Servers\<SERVERNAME>\Printers.
    I have found KB958656 which seems to describe my problem that CSR is not being disabled. However one of the files it updates is older than a file that I have (win32spl.dll) & one is newer (printcom.dll).
    Printcom.dll in hotfix is 6.0.6001.22288 mine is 6.0.6001.18000
    Win32spl.dll in hotfix is 6.0.6001.22288 mine is 6.0.6002.18005
    Has anyone else seen this behavior & been able to get CSR disabled?
    Has anyone else had success with the KB hotfix mentioned or know whether or not installing it would causing any issues (since it has that older file)?
    Thanks in an advance to any input.
    Patrick Hoban
    http://patrickhoban.wordpress.com

    Alan/Patrick,
    Hi, sorry, went away on leave for a while so didn’t respond.
    Alan – our case was REG:112081612189183.
    For someone who has been dealing with MS support for about 20 years, this was the most disappointing of any support call I’ve ever had raised – to have the call shut
    down, without a perfmon trace, process explorer analysis, or hang dump analysis (of spooler) – and simply blame “3<sup>rd</sup> party drivers” without any proof – is utterly deplorable.
    Anyway, for anyone’s benefit who has similar problems – trying to do direct printing from RDS – I’ve managed to get a solution working. 
    Here are the details;
    A nightly print spooler clean-up script that;
    Stops the spooler
    Deletes the entire key under “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider”
    Re-creates the key (empty) and sets the value "RemovePrintersAtLogoff"=dword:00000000
    Note, this was vital. 
    MS support had recommended we set this to 1, along with some other keys (InactiveGuidPrinterAge, 
    InactiveGuidPrinterTrim) with specific values.  If we used these MS support recommended values, our RDS serer would not enumerate printers for more than 3-4 hours before requiring a restart of the spooler.
    Restart the spooler
    Map a printer (just to make sure it works)
    Clean up the USERS\.DEFAULT\Printers key on all existing servers
    There was heaps of crap here, the default user NTUSER.DAT was over 800MB in size
    Modify the security on the registry, using GPO to deny SYSTEM write access as below, to stop the crap writing here again;
    USERS\.DEFAULT\Printers
    Deny Set value
    Deny Create Subkey
    Run NGREGOPT on all servers to compress the DEFAULT and SOFTWARE hives back down.
    Even though we had deleted the crap from “Client Side Rendering Print Provider” and the DEFAULT user hive, the registry files were still large of course, and needed to be compressed to reduce
    paged pool usage.
    Note, make sure no users are on the server when this is run !
    With the nightly spooler ‘refresh’ and the registry security changes, we are no longer seeing any problems. 
    In addition the paged pool has gone down from 5GB to 1GB – which I believe was related to the registry bloat that had occurred previously. 
    Cleaning up the keys and using NGREGOPT has fixed this.
    In addition, I am running a spooler check script every 30 minutes on each of the 13 servers. 
    This script checks how long it takes to enumerate the printers for the specific test user. 
    If it takes more than 20 seconds, we get an alert.
    Since I have made the changes above, we no longer have any printing problems… touch wood.. even using HPD 5.4 for most printers, and other (RICHO) 3<sup>rd</sup> party
    drivers.
    If anyone wants the scripts (the spooler refresh or the check script) let me know on david.frith<at>glfconsulting.com.au
    ta

  • Send direct print to printer from client, Reports 10G, Windows environment,

    We are using windows 2003 based server. Oracle Form and Report Services . Database 10g . Reports 10G.
    Trying to send direct print to printer from client side using Destination Parameter : Printer.
    I am getting output in pdf at client side. but direct print to printer is failed.

    Make sure that the client printer is also known on the application server, since that is where the print job is generated.

  • How to Print Crystal Report without any dialog message on the client side

    Hi!
    I've read too much questions like this, but i can't find any answer.
    How can i print a report on the client side directly?
    I have three buttons, "Generate Report", "Generate PDF", "Print".
    I want when the "Print" button was clicked, automaticaly the report is printed using default printer, like PrintToPrinter function, but in the client side.
    Thanks!

    If you search for previous posts about this, you will see many posts saying not possible.  If this functionality was possible, you could essentially have a page that would send something to a clients printer just by visiting the page, how bad of security hole would that be?

  • Reporting Services Client-Side Printing

    All my BI users should be able to print SSRS directly from their Local PC. Right now they do not have administrative rights on their PCs.  How do I install  the print- client  SSRS files on the client machines. Also, what and where are the
    files I need to install in order to enable client-side printing. I am using SSRS 2012 SharePoint integrated mode.

    Check out this article...
    http://www.kodyaz.com/articles/client-side-printing-silent-deployment-of-rsclientPrint.aspx
    The same concept applies no matter which version of SSRS you are dealing with.  You just need to find the CAB file.  For SSRS 2008 R2 it is in:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin

  • Printing multiple PDF with single event at client side

    Hello,
    I have a requirement where I must print multiple different pre-populated Adobe forms (e.g. populated with a name/address) from ABAP WD. These need to be printed at a client side printer, and they don't want to see them first (that would be easy). Just print multiple forms from a single button click.
    Has anyone had this requirement? My main question is not how to pre-populate the pdfSource, but how to have the user prompted for a printer 1x and then have the forms sent straight to the local printer without displaying.
    Thanks!

    Sorry to 'hijack' this thread but i was trying to do the same thing but failed EVERYTIME!!!
    When i tried to merge just 2 multiple-paged(abt 20+ pages each) pdfs into one, it simply crashed Preview at the end of the process! Tried 'Save', 'Save all' & 'Print as PDF' but all doesn't work!
    I tried Combine PDF.app & Automator.app and the same thing happened. The combining process CRASHED the app i used...
    Help needed!

  • Printing web page at client side

    i want to print web page at client side . Page & printer settings are through coding. i tried using
    DocFlavor myFormat = new DocFlavor("text/plain; charset=utf-16be","java.net.URL");
    i found exception invalid flavor

    If you are trying to print a web page on the client side, you have to use the browser's print function which can be invoked through JavaScript. What you are trying to do can't possibly work. Even if you weren't getting an exception, it wouldn't work. Any Java code in the JSP will have no effect on what happens on the client's machine.

  • Printing a report in client side

    Hai All,
    I am working on a J2EE application which using jasperreport for reporting but i am having an issue with that while printing it prints the report in server side but i wants tho print that in client side is there any options for doing this.
    Thanks in Advance
    Karthikeyan.V

    Yes my output is HTML but i have to print only some part of the html page and also the the HTML page shows only one page of the report at a time but i wants to print all pages in a single click action
    Regards
    Karthikeyan.V

Maybe you are looking for