Override the print event...

Hi Experts,
i'm searching a way to override the print button event from a ReportViewerBean object... does somebody has a suggestion??!?

Okay,
maybe, my question is not enought clear. In fact, i would like to add an instruction when the printViewer() event is fired... or at least to know if a print request have been sent to the printer. In fact, i would like to manage myself the report printing...
thks!

Similar Messages

  • Capturing the Print Event

    Hi Guys,
    A newbie here!
    I have been reading a lot but I can't seem to find the answer I'm looking for.
    See, I have created a report in SAPScript. Basically, I need to create a table (have done that) to record when the document was initially printed, as well as the latest date when it was reprinted.
    For succeeding prints, I have to mark the document with the label "reprint".
    The question is, how do I capture the "print event" so I can record said data.
    I need to capture the event
           1. when the user clicks on the print button of the initial dialog box; 
           2. when the user clicks the print button on the standard menu when he goes on print preview; and
           3. when the user clicks print from the system menu.
    Thanks much!

    Hi,
    Thanks! I know NAST is a message status table, but how would I connect it from there? How would it determine that the output was printed. Is there a way to know the object key that my program would create?

  • Javascript to immediate print overriding the printer settings

    Hi,
    I created a button to launch the print of my PDF in 2 copies, printing on both sides.
    However, when clicking on the button, the printer dialog shows - and it is already set for 2 copies, but the duplex option is unchecked.
    I just want that when I click on my custom-made button it launches 2 duplex prints (without any prompt).
    What code should I use?
    Thanks!

    "Silent" printing without the dialog box is not permitted in a document-level script (a malicious file could send a thousand copies to your printer).
    It's only possible with folder-level scripts installed by the user.

  • Any way to customize the headerClick event of an Accordion control

    Hi,
    Is there any way to control the transition of the accordion
    headers. I want a confirm message to appear when a header in an
    accordion control is clicked and if the user selects Yes then only
    the accordion should open the clicked header portion else the
    previous header portion should remain open.
    I tried to override the headerClick event and its event
    Handler but both are declared as private in the Accordion class
    also the event.preventDefault doesnot function. Is there any way to
    customize the header click event handling?
    I am working on Flex version 2.0.1.
    Thanks and Regards,
    Paromita

    But, as said before, sharing the same session shouldn't give any problems at all. Which problems are you occurring? If you have problems with that they shares the same session, then you are apparently storing values in the session scope while they belongs in the request scope.
    Hi,
    Thanks a lot for your comment.
    But if I change the backing bean to session scope, the same problem exists.
    And i need to set the userID to session for future reference.
    the scenario is like this,
    1. I am loading the JSF application in iFrame of a .NET page and the user can invoke multiple instance of the same .Net page in different browser at a time.
    2. After loading the JSF application, the server will establish session with the browser and at that time the same session is sharing by the windows.
    3. From the JSF page i am again invoking a popup window for a wizard and this popup window will be in the same session with the parent window. So whe we invoke the popup window from the any other JSF page, it will also share the same session although the userid is different
    I have tested and the same session cookies are shared among the pages. So we need someway to manage the creation of session. By writting a servletResponseWrapper and overridding the addCookie method will have any effect?
    Or can you please suggest some other alternatives?
    Regards,
    Sudheesh

  • Override default print options in Adobe reader

    Hello Adobe support team,
    Can you please provide the possible ways to override the print options that comes by default. In the below snapshot marked in red green and blue are the ones that we want to be set as default print options for a selected document instead of users setting it for each document.
    Please help!

    All permanent print options are set from the Printer Control Panel without being in the printer setup from within the application.

  • Determine Printer From Print Event

    Hi,
    I am trying to use the PrintEvent and ReportDataEvent to handle printing of some forms bypassing SAP.
    From the SDK help.
    "You can use this event as an "exit" point for integrating third-party reporting tools instead of the SAP Business One Document Editor."
    Unfortunately I am unable to obtain the printer that the user selects in the print common dialog. It doesn't seem to be exposed by the UIAPI anywhere.
    There is a field in the PrintEventInfo called WithPrinterPreferences but it is useless without more information as to what the print preferences are.
    The print dialog appears before either the print event or the report data event so I can't stop it appearing using Bubble Event.
    My only workaround is to catch the print and print preview menu events and for specific forms stop them from propagating back to SAP. Then show my own printer selection dialog. The problem with that is I have no way of setting the document as "Printed". The printed field on the form is ReadOnly from the DIAPI. The only way of setting the form printed looks to be calling MarkAsPrinted during the print event.
    Regards Jared

    Hi Jared,
    i know this issue:
    it is possible to catch the print common dialog with .NET functionality.
    but very restriced - you can send "OK" to window - thats it.
    but at least the document has than the status "printed".
    the trick is catching the dialog window with searching the "Form Title".
    lg David

  • Capturing print event from PDF viewer

    Hi all,
    I am using class CL_GUI_PDFVIEWER to display and print a document using a SAP dynpro screen & a custom container.  I am successfully able to do this, but would like to capture the print event from the viewer in some way.  I did not see any print events for this class; is there any way to capture the printing of a PDF document from this viewer?  Thanks much,
    Rebecca Levings

    Hi Rebecca,
    I am using class CL_GUI_PDFVIEWER to display PDF, but also want to print the document.
    If I use PRINT Method of this class I am getting a runtime error. Can you please share your print code .. My requirement is to print a PDF File stored in file Client System without manual intervention.
    Thanks in advance!

  • Capture print event in adobe reader and show a message

    Hi,
    We have only adobe reader installed on our machines, is it possible to use the sdk to capture the print event in adobe reader? Our goal is to show a message to the users before the print dialog appears and
    as soon as the user prints a document?
    Is it possible?
    Thank you,
    Peter

    You can certainly develop a plugin for Adobe Reader that would do this.
    Plugins are written in C/C++ and, for Reader, you will need to obtain a license & associated key from Adobe to enable that plugin.   Details are all in the SDK.

  • Capturing the Cancel button with Before Print event handler

    I put together a script that is triggered by a beforePrint event handler. Everything works fine but I can't figure out how and where to capture the user clicking on the Cancel button in the Print dialog?
    Any ideas? Thanks, Dan

    Alen,
    My bet is you are using JDeveloper 11.1.1.5. This is a known ADF bug 12551764 in this release, not related to JHeadstart.
    Here are the details:
    http://adfbugs.blogspot.com/2011/05/jdeveloper-11115-serius-bug.html
    I just checked the bug database, it is fixed in patch 12399372. You can go to metalink to download the patch.
    Steven Davelaar,
    JHeadstart Team.

  • Want to print event in color, not the dash of color before it

    Why does ical only print a color bar before an event and doesn't print the event in the color assigned to it?? it does on the screen but prints the event in black in white with the little dash of color before it and isn't as easy to have your eye find what you are looking for without the events being printed in color. help!!

    mdems,
    Would love to see if anyone has an answer - or if anyone is listening at Apple HQ --
    This Forum is unfortunately not Apple Support. According to Apple:
    What is Apple Discussions and how can it help me? 
"Apple Discussions is a user-to-user support forum where experts and other Apple product users get together to discuss Apple products. You'll find a wealth of information about your favorite Apple hardware and software products that will help you get the most out of your purchase. You can participate in discussions about various products and topics, find solutions to help you resolve issues, ask questions, get tips and advice, and more.
    If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support >pages."
    There is no way that I know of to print events in color. That is probably why this question has gone unanswered. One workaround is to use a screen shot to capture and print the calendar with Preview.
    This is a feature we want!!
    I would recommend that you provide iCal Feedback, if you are interested in informing Apple of your desires.
    ;~)

  • How to override the onTouchUp in the user control which can be used to fire the event not only on this user control, but whole application

     I am a new to the C# and WPF. Right now, I want to override onTouchUp event in my user control. Then I can add user control in
    the references for reuse. The problem is each time I want to test this event on the application, the event only fire at area of user control, not whole screen. Anyone has solution for this?

    You cannot just add a UserControl to a window and expect its OnTouchUp method to get invoked when a TouchUp event occurs outside of the user control. That is not how routed events work.
    The OnTouchUp method of the UserControl will only be invoked when a TouchUp event occurs from within the UserControl.
    The event will indeed bubble up to the parent elements of the UserControl and you could for example handle the event in the parent window:
    <Window x:Class="WpfApplicationSlider.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525" TouchUp="Window_TouchUp">
    The OnTouchUp method of the UserControl will however never get invoked when you touch an element outside of the UserControl because an event only travels between the source element and the handler(s). This is how routed events work.
    If you want a "global" TouchUp event handler you should override the OnTouchUp of the top-level
    window:
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    protected override void OnTouchUp(TouchEventArgs e)
    base.OnTouchUp(e);
    //do your thing...
    If you want to be able to reuse the functionality across all of your windows in case you have several you could for example create an abstract window class and make all your windows inherit from this one:
    namespace WpfApplication1
    public abstract class BaseWindow : System.Windows.Window
    protected override void OnTouchUp(System.Windows.Input.TouchEventArgs e)
    base.OnTouchUp(e);
    //do your thing...
    MainWindow:
    public partial class MainWindow : BaseWindow
    public MainWindow()
    InitializeComponent();
    <local:BaseWindow x:Class="WpfApplicationSlider.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WpfApplication1"
    Title="MainWindow" Height="350" Width="525">
    </local:BaseWindow>
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and please start a new thread if you have a new question.

  • Will this SB1 reporting and printing forum will override the B1 forum ?

    Hi All,
    Will this SB1 reporting and printing forum will override the B1 forum ? If not, it means that the B1 will be purely the application or functional such as query FMS, store procedure or any work around.
    Rgds,

    Hello Jimmy,
    There is today a demand for a forum relating to printing and reporting for SAP Business One. We have taken the strategy to go for functional forums like this. This forum will in no way replace the main Business One forum, it is intended to compliment it. As we move further into the forums and as we reach ceilings in forums we will break them down into further functional forums such as this. There is a lot of threads relating to printing and reporting and Crystal Reports so we created this thread. I know you are a large contributor and hope that you can share your knowledge to these new forums.
    Regards,
    Paul Finneran
    SAP Business One Forums Team

  • I have "ghost" events on my printed calendars repeating daily after the original event. How can I delete these as they only appear on the printed calendars and not on the on screen version?

    I have "ghost" events on my printed calendars repeating daily after the original event. How can I delete these as they only appear on the printed calendars and not on the on screen version?

    I had a similar situation.  My credit card bill shows a charge on Sept 8 and Sept 9, both for $55.99.  I called Apple but they said that I was the victim of identity theft so I cancelled my credit card.  They have not refunded my money.

  • Printing event locations in Week view

    Hello,
    I'm trying to print out my class timetable for the term, and it would be exceptionally useful if i could see the locations of each class/event in the print out rather than having to write them in by hand! I can't see any option to select/deselect this in iCal's print options. Does anyone have any tips for how to get an iCal event's location information to appear in the weekly view printout? I could have sworn I was able to do it before (but I might be dreaming...).
    Thanks in advance,
    Lauren.

    Hmm, suddenly they locations have appeared again on my latest attempt to print them out. Not sure what that was all about, but whatever it was is now sorted.
    Cheers anyway!

  • Using the print button to print then close a document

    I use Live Cycle Designer to create my Adobe documents.  I am working on a kiosk project and one of the menus navigates to a document page that has PDF documents and forms for users to print out.  The way the kiosk is designed, I would like for my pdf file to close after the print button is selected.  I recieved a solution in the general Adobe forum, but later found out the script does not work if the document was made using Live Cycle.  Any suggestions???  Is it possible??? Thanks.

    Open your PDF file in adobe livecycle designer, select print button on PDF.
    Go to windows(in adobe designer menu bar) and select Script Editor - In Show dropdown list select postPrint event and copy paste the code below-
    app.execMenuItem("Close");
    Regards-
    Chalukya.

Maybe you are looking for