How to view the print dialog

Hello,
Does anyone know how I can view the print dialog on the client's screen instead of the server screen. I use java.awt.print classes.
Frame f = new Frame("test");
f.pack();
PrintJob pj = f.getToolkit().getPrintJob(f,"PRINTING NCN", new Properties());
Paper paper = new Paper();
paper.setImageableArea(0,10,74,105);
PageFormat pageFormat = new PageFormat();
pageFormat.setPaper(paper);
if (pj != null) {
     Graphics g = pj.getGraphics();
Thx.

if what you want, it is to print what it is seen in the server in the client, you must follow these steps:
1. server: make an screen capture in a JSP page and send the image to the client in jpg format
2. client: show the jpg image in a hidden frame or window and use javascript to show the print dialog
3. client: the javascript code is parent.print();
This works. I sure.
Good luck.

Similar Messages

  • How to display the Print Dialog with defined print presets included.

    When I try and display the Print Dialog none of my defined print presets are included in the print preset list box, I only get the [custom] option.
    How can I get the presets included in the list?
    The code I am using is:
    InterfacePtr<IPrintData> docPrintData(document->GetDocWorkSpace(), UseDefaultIID());
    // create a temp non-persistent IPrintData
    IPrintData* tempPrintData(CreateObject2<IPrintData>(kPrintDataBoss));
    // copy data from the document workspace
    tempPrintData->CopyData(docPrintData, kTrue);
    InterfacePtr<ICommand> printDialogCmd(CmdUtils::CreateCommand(kPrintDialogCmdBoss));
    InterfacePtr<IPrintDialogCmdData> printDialogCmdData(printDialogCmd, IID_IPRINTDIALOGCMDDATA);
    // store off the document's UIDRef in the print data boss
    UIDRef docUIDRef = ::GetUIDRef(document);
    printDialogCmdData->SetDocUIDRef(docUIDRef);
    printDialogCmdData->SetPrintData(tempPrintData);
    ErrorCode result = CmdUtils::ProcessCommand(printDialogCmd);
    tempPrintData->Release();
    Thanks

    You can set the presets with Adobe Acrobat.

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How to view Smartform Print Preview

    Hi,
    I have a Sales Order, Print output   is issued which has smart form  &  Print Program. Can you explain me how to view the print preview again for the Sale Order for which ouptut has been issued in ECC 5.0.
    Many Thanks
    Lakshmi

    Hi Atish,
    I did tried by going VA03 Screen & then Selected
    Extras- Output - Header - Print Preview from Menubar
    but no luck I cannot see  Print Preview of the output.
    Thanks
    Lakshmi

  • How do I force the print dialog to default to Print All?

    Hi all,
    I've searched the forums for this and found several similar requests but no answers so I am posting this as a fresh post.
    I have a requirement to have the print dialog appear when printing from javascript and have it always default to Print All.  From my research, it appears that there are only two API methods to do this:
    1) Print()
    2) PrintWithDialog()
    Neither take paramters.  Both have the same description in the documentation (which seems odd in of itself).
    From our research, PrintWithDialog() appears immediately when called (even if the PDF is not yet fully loaded) but always defaults to, "Print 1 of x" unless the PDF is only 1 page.  In that case, it defaults to Print All.
    The Print() method defaults to Print All.  However, if you call it before the PDF is fully loaded, it does not show.  I have searched these forums and found many other people running into this issue.  One thread suggested to put in a timer to make sure the PDF is loaded and then call print.  This works for small PDFs but our customers could be printing thousands of pages so there is no way to know how long to make the delay.
    I tried paying for Support to answer this question and was told there were NO PAID OPTIONS for getting support on the Acrobat SDK and to come post the question here.  The Support Engineer I spoke with assured me developers read and respond to these forums.
    This is a critical issue for an important customer so any feedback is much appreciated.
    An Adobe employee (Irosenth) mentioned something about a bug being reopened in this thread (http://forums.adobe.com/message/2601148#2601148) but no bug number was ever given.  If it truly is a bug, please provide the number, description and ETA for fix.
    If there is no solution, can I get a response from Adobe that supports my research as posted above?  In other words, confirm that both the API are working as expected?
    Finally, given that it seems many people want this functionality, how do I submit an enhancement request?
    Best Regards,
    Brian

    I downloaded Reader X and the problem is still occurrring, as was reported by the originator of this thread back in November.
    Are there any parameters that need to be set for this to work?  My customer is getting very impatient with this.
    Also, since downloading Reader X the toolbar does not appear by default. It pops up when you hover over the top of the window.   How do I get the toolbar to appear by default?  (this is not nearly as important as defaulting the print dialog to Print All on mulitple page docs when using printwithdialog).

  • Current View option in  the Print dialog box

    I have a PDF file, approximately 55 pages that is comrpised of 50+ .jpg images that were combined into a single PDF file. The images are various size screenshots from Facebook.
    I need to be able to print the entire file at 75% magnification in order for every page to be readable.  Only way in Adobe’s print dialog box that I can find to do so is select one page at a time, select “Current View” and then print. 
    When "All" is selected under Print Range in the Print Dialog box, the pages print at different magnifications, most below 10% and unreadable.
    Is there a way to get the entire document to print in the “Current View” setting or at a specified magnification?
    I’m using Adobe Acrobat 9 Pro.
    Any help would be greatly appreciated.
    Thanks

    duh...
    Figured out I had to tweak it in the "copies and Pages"

  • How to disable the reminding dialog when close the webi report viewer

    Dear all
    How to disable the reminding dialog when close the webi report viewer
    Background
    When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
    But customer need to disable this dialog, and can clost the report viewer directly.
    So is there any ways to modify this?
    I think it shoule modify some .js file under tomcat, but can not find the solution.
    Thanks a lot, any information woulde be appreciated.
    David Zhang

    I've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
    It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
    I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
    MANY thanks mende1 for the answer on how to fix it.

  • HT3669 Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this opt

    Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this option?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • How to view the sapscript result without directing to Printer

    Hi All,
    I am new to ABAP. can any one tell me how to view the sapscript output without redirecting to the printer from an abap program.
    Help would be appriciated.
    Thanks,
    hima

    There are several ways you can view the output of the SAPscript, without redirecting it to the printer.
    1. You can directly view the output  using Menu --> Utilities -->  Printing Test --> give the default printer as LP01  and click Print Preview button, that should give you the print preview of the SAP Script.
    2. You can execute the the driver program, if it is a custom program (Z program)  then execute the program, it will give you an option of selecting printer,, give the printer as LP01 and select print preview.
    lets say you are trying to view the purchase order "Zmedruck", the driver program for the same can be found using the transaction code NACE. or else you can execute the transaction code ME23N, There you will find a button called "Print Preview"  Click that to preview your SAP Script. Menu --> GoTo --> Print Preview.
    Similarly you will find options to view your sap script in almost all the standard transactions where you are using your SAP Script.
    If you need further information,, give me a mail at [email protected]
    if found useful, don't forget to reward points.
    Thanks-
    Shrikant

  • After the latest two updates, whenever Firefox starts, the print dialog box appears automatically. Why, and how do I stop this?

    Not much else to add. The print dialog box just opens every time Firefox is started or restarted.

    Check the Home page setting:
    *https://support.mozilla.com/kb/How+to+set+the+home+page
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How can i get rid of the print dialog box when using api to print an html file

    i am using the systemshell.vi provided by labview the VI is working fine but it will open a dialog box for printer selection and properties. i would like to hide that dialog box and have it print to the default printer with the default properties

    ShellExec is part of lvwutil and merely calls a function in Shell32.dll. There is nothing about the function call that controls the display of the printer dialog. I think that what shell32.dll does when it prints (just like right clicking on the file) is print the file according to what is defined about that file type in Windows Folder Options. On my Win2K system, the print application is defined as "C:\Program Files\Microsoft Office\Office\msohtmed.exe" /p %1. If I remove the /p, then Word starts up and in order to print, I get a printer dialog when choosing Print from the File menu. So it seems like the printer dialog is entirely dependant on the application that does the printing. I get no dialog when I use the VI to print a .txt file. I
    nstead of using shell32, you might want to try some ActiveX method or property of an application like Internet Explorer that can open and print an html file.

  • HT204135 How can one make the printer dialog box to have Show Details as default?

      I very often use different presets from document to document.  Thanks.

    Once you select the Show Details for any application, the next time you use that application and select to print, the full details pane should be shown.
    If this is not happening and the applications always show the Hidden Details print dialog then you may need to perform some sort of reset.
    Also, if you were to use the Presets option and set commonly used settings as a Preset, then even if the print dialog is not showing the extra details, you can still select the desired Preset from this print dialog.

  • How to display the print dialogbox in crystal reports viewer for visualstudio 2013 in wpf?

    Hi,
    In my wpf application when i click on print button i want to display the print dialog box for current report.
    Here i have written like as follows.
    1.MyCrystalReportsViewer.ViewerCore.ReportSource = reportDocument;
    2. MyCrystalReportsViewer.ViewerCore.PrintReport();
    The above two statements  is executed and displayed the report in CrystalReportViewer, but it doesn't show any print dialogbox.
    MyCrystalReportsViewer is name of the CrystalReportsVIewer control.
    Can any one help me to solve this one using code.

    Hi Sandeep,
    Did you download CR for VS SP 13 from this link?
    http://scn.sap.com/docs/DOC-7824
    First link is to integrate CR into VS.
    If you did then I suggest you do a Repair on both VS and CR for VS.
    Also, VS must be Pro or higher, CR will not work in VS 2013 Express.
    Do you have printers installed? Do not use Windows XPS printer, it has problems.
    Don

  • How do I change the default page range in the Print Dialog

    Post Author: MikeDymond
    CA Forum: .NET
    Even when a report has more than one page the print dialog produced by the .net version of CrystalReportViewer sets the default page range to 1 of 1.Is it possible to change that to default to All? Cheers Mike

    Post Author: dlyford
    CA Forum: .NET
    Yes you can do this. I've done it but cannot remember exactly what page I had to modify. I think it was in the aspnet_client\system_web\2_0_50727\crystalreportviewers115\js\export.js file. In one of the functions you need to swap the ALL and PAGES variables.  Hope this helps.

  • Printing a report and using the print dialog for it

    i already have the print dialog vi from NI. I am using the normal report generation toolkit for printing reports. But I want to give the user an option to choose the number of pages and landscape/portrait options. But how do I integrate the 2 so that before printing the user can select these features.

    There is an activeX control that will set these settings. It is called IAS Helper COM Component 1.0 Type Library. It operates the Windows printer configuration program. Since another company wrote the code, I do not have the resources to help you use the control, but the attached example program should get you started.
    Jeremy Braden
    National Instruments
    Attachments:
    Print_Window_Example_v61.llb ‏59 KB
    Print_Window_Example.llb ‏59 KB

Maybe you are looking for