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

Similar Messages

  • How to order prints from numerous events

    I know how to order prints from iPhoto but would like to know how to order prints from numerous events as to pay only one shipping charge.

    Make an album of the photos and upload that.

  • HT204135 I can't stop my printer from printing in color.  Any suggestions?

    I have tried to stop my printer from printing in color and can't change.  Any tips on how to change?

    One of the nice things about owning a Mac is never having to be concerned with drivers, dlls, or virus's. Regarding your question simply let Software Update do the work. In System Preferences - Software Update choose how often you want the computer to check. I have mine set for daily. That way it will automatically check for you and if it finds an update your system needs it will advise you.

  • HP Color LaserJet 4700dtn. Won't Print from printer queue.Event Code 68 8002

    From the start of using this printer about a year ago I normally just plug in the usb wire from the laptop and it works.
    For some reason about 3 weeks ago it seems to have stopped receiving data from the computer . A different wire to the printer will not work. but the same wire connected to a different printer on same laptop port does work.
    I have tried discovering the printer using the HP support system to try an update the driver/firmware.  The printer is discovered but the update seems to end up in th printer queue and gets stuck.
    The queue is empty at the moment.
    My normal printer repair company say its a software problem.
    The printer will print its own diagnostics pages but to be honest I don't have a clue what the info printed off means or if there are any answers to be found there.
    Anyone any ideas please.    ( answers in "printers for dummies" speak if at all poss please) 

    Hi,
    Please follow in the link below :
    http://h20000.www2.hp.com/bizsupport/TechSupport/D​ocument.jsp?lang=en&cc=us&taskId=110&prodSeriesId=​...
    I work for HP but my posts and replies are my own.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Can't print from print server

    I have an HP PSC 1610 all in one. To set up my printer I pluged the USB cable into the Mac and had no problems. It obviously has the drivers because it added my printer in Print & Fax and it prints with no problem. What I want to do is unplug my USB and plug it into the print server, and then tell the Mac that the printer is located at IP address. This works very well with a PC. I just can't find out where to put in the IP address. If I install an IP printer, I have to use the drivers from another printer because my PSC 1610 is not on the list of drivers. It will print, but I'm not sure what i'm sacrificing. I doesn't make sence.

    cadillacjoe,
    Have you played with this network configuration guide offere by DLink?
    http://www.dlink.com/configurator/index.asp?vendorID=dlink&adLoc=rightNav&pid=6&
    I ran some senarios and came up with assorted products and plug-in options.
    This site:
    http://www.compuplus.com/i-D-Link-DPR-1260-RangeBooster-Wireless-80211g-4-Port-U SB-20-Print-Server-1006974~comboid-803.html?sid=wqi0i4dj031t958
    indicated the following:
    "More Info & Product Specifications:
    The Ethernet port on the Print Server can be used as a wireless bridge.
    This provides wireless connectivity for any Ethernet-enabled device, such as a computer, Digital Video Recorder (DVR), or Network-Attached Storage (NAS) to the wireless network."
    What flexibility do you have in where you locate the G3 and the printer. Could the D-LinkDPR-1260 be hardwired to the B&W instead of the otherway around?
    Ji˜m

  • Wont print from printer friendly page

    i'm having trouble printing my printer friendly confermations from the state and goverment web sites. no problem just plain printing   when go to printer friendly page it want print

    Hi @ponzi ,
    I see by your post that you are having issues printing from a web page. I can help you, but I will need some more information.
    In the mean time, try another web browser to see if you have the same results.
    What web browser are you using?
    What is the full name and product number of your printer? There are several Laserjet 200 series. How Do I Find My Model Number or Product Number?
    What operating system are you using?
    How to Find the Windows Edition and Version on Your Computer.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    How is the printer connected? (USB/Ethernet/Wireless)
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Adding Printer from Print and Fax does not bring up the correct Window.

    Hi,
    When I first had my Macbook, OSX Leopard, I tried adding a printer and saw that the Window that popped up allowed me to add printers from IP, Windows, Local, Etc.
    However, when I came back to add a printer now, all I get is this window:
    http://img502.imageshack.us/img502/2748/picture1vc9.png
    That window pops up when I press the + on this window:
    http://img264.imageshack.us/img264/8923/picture2sc1.png
    I remembered when I press the + button, it would come up with a different window than the one I get now, which allowed me to add a printer from Windows, among other options.
    Please let me know if the window I get right now is supposed to happen. I can't add any printers from the window I get now.
    Thanks alot.

    Just to add a bit of clarity to the previous response, you need to click on the clear, oval widget at the upper right-hand corner of the the window. That will reveal the Toolbar with the options for IP, Windows, etc.

  • Print from printer connected to pc with windows 7 from a imac

    I have a pc with windows 7 and a HP Deskjet f300 series printer connected to it.
    I would like to print from my iMac. Help please.

    There are a number of requirements with the Windows 7 and Mac OS X setup. If one of these requirements is not met, then the printing will not be successful.
    *Windows 7 Setup*
    Windows 7 introduced a new sharing feature called HomeGroup that is supposed to replace the workgroup for home networking. However, the feature only works for Windows 7 connected to other Windows 7. Therefore, if the Windows 7 computer has been configured to use HomeGroup, the first thing you need to do is detach Windows 7 from the HomeGroup.
    The next setting is the network profile for Windows 7 computer. Windows 7 provides four network profiles; Home, Work, Public and Domain. Based on the network location you choose, Windows assigns a network discovery state to the network and opens the appropriate Windows firewall ports for that state. Ideally the computer should be set to the Home or Work profile.
    With the network profile selected, another setting within the profile that can hinder the discovery of the shared printer is the network discovery setting. With this setting turned off, the Windows 7 computer will not appear under the respective workgroup (or if the setting has been changed after the computer was seen by the Mac, then it can appear in the workgroup computer list but will not show any shared printer - this is most likely due to the LAN manager timing). This setting can be accessed via Control Panel > Network and Sharing Center > Advanced sharing settings.
    Also, within the Advanced sharing settings for the Work or Home profile, another setting called Password protected sharing can stop the shared printer from appearing. With this setting turned on, the Win7 computer will still be seen when adding the Windows shared printer, but after selecting the Win7 computer, the shared printer is not displayed as no prompt is given to enter user account details. So this setting needs to be turned off. Then when the Win7 computer name is selected, a prompt will appear requesting user account information. The Guest account can be selected here to see the shared printer name.
    *Adding the Printer*
    Now that you can see the printer share, the next step is to add a printer driver that will support the printing via a Windows computer. The instruction shown above by musicwind for adding a shared Windows printer is correct, however you need to be aware that some vendor drivers do not support this type of connection. In this case you need to use a CUPS based driver, such as those provided by the Gutenprint driver set included with Snow Leopard. You may need to reload your SL disc and run the Optional Installs package to get all the Gutenprint driver for your model.
    One last note. If the Gutenprint driver for your model does not exist or does not work, then you will need to install the HPIJS for Mac OS X driver suite. Ensure you read all the documentation on this page as there are three packages that need to be installed.
    Hope this helps you.
    Pahu

  • Won't print from printer

    Does the usb cord need to be connected to my computer for me to be able to print from the computer.  Thought wireless
    meant I didn't need any usb cords.  
    THANKS

    PeerOne wrote:
    So tell us again why do you need to connect to the router to print to the printer? Is the printer not a wireless printer? If so you don't need to go through the router? And if your setup for the printer is for wireless printing you setup should've been in wireless setup installation. Did you do this? I don't get why you need to connect to your router to print if your printer is a wireless printer?
     I may have been inaccurate in describing my set up.  Apologies. I have BT Infinity which means I have a box (BTOpenreach) which has the Power DSL and Lan1 lights and I have a box (BTHub) which has Power, Broadband and Wireless lights (all working).  It is the BTHub which I described as the router (maybe incorrectly) which I have to turn on and off to make the PC recognise the printer.  The printer is not connected to either of these boxes by any wires.
    The printer is a wireless printer and when I touch the Wireless Summary button it shows that all appears to be working. I did set up my printer for wirelss printing and at first when I loaded my PC with the software and drivers etc, it did recognise the printer and worked.
    Now it doesn't seem to be able to find it (unless I turn the BTHub power off then on.  Interestingly the HP Scan and Print Doctor confirms it can't detect the printer and suggests I turn it on (when of course it is on!).
    Does this make it clearer?  Thanks.

  • Shipping customized BOL report needs to be printed from 'Print BOL' button

    Hi All,
    We have requirement whereby
    Our customized Bill of Lading (BOL) report should be printed when ‘Print BOL’ button is clicked on shipping transaction form. Can this be achieved with any setup change? (we would like to check this option before going for customization)
    Our customized BOL report is ready and as of now we print it by manually submitting concurrent request. As of now clicking ‘Print BOL’ button submits Oracle seeded/standard BOL report.
    (Oracle EBS R12.1.3)
    Thanks
    SidK

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • I want to stop my printer from printing the same thing every time I turn it on.

    HP 6500A: how do I cancel printing jobs so that the printer doesn't continue to reprint them?

    Hi Mjs51,
    Try this - Assumes Windows 7 (you didn't say what OS your are using):
    Turn Off the printer.
    Start > search / type, then click on "Control Panel" > icon view > Administrative Tools >
    Services > Click on "Name" to sort by name > Scroll down, look for "Print spooler" > Stop
    Leave that Services window open...
    Open a Windows Explorer window:
    Start > search / type, then click on "Windows Explorer" > type / paste in the title bar (to the right of the <--> arrows    C:\Windows\System32\spool\PRINTERS
    Alternatively, you can poke at each folder name (Windows > System32...) until you get to the folder named PRINTERS
    Remove (delete) all the files you see in that folder directory. 
    (Highlight > Right-Click > Delete)
    Go back to the Services window:
    "Restart" the Print spooler service
    NOTE:  If you cannot stop / start the spoolsv service, try Right-Click on services and "Run as Administrator" to give you permission to control the services.
    Unplug the printer, wait a bit (One minute), plug it back in...turn it on.
    NOTE:  There may be a buffer cache clear selection on the Printer - you could check on the front panel of the Printer Menu.  Try this in the event that you cannot get to the outlet to unplug the printer OR try it in place of unplugging the printer.  Choice.
    I hope this helps solve your printer problem.
    Say “Thanks” for the Help!  Click the Kudos Star whenever you find a Post that helps you.
    Mark the Post “Accepted Solution” to say the solution provided worked for you.
    Kind Regards,
    Dragon-Fur

  • Adding printer from print server

    Hi All,
    We are migrating to a new print server, and i am writing a script to detect a users installed printers, change the server name and re add the printers (and also set the default printer). This is to be deployed from SCCM 2012 R2
    The problem is that the deployment runs but doesn't migrate any of the printers - when run manually, the script asks for drivers to be installed for certain printers.
    Is there a way to bypass this in pwershell?
    I have already tried to get around the problem in SCCM but it hasnt worked.
    My Script is below.
    Thanks in advance for your help :)
    $net = New-Object -ComObject WScript.Network
    $oldqueues = Get-WmiObject -Class Win32_Printer | Where-Object ServerName -Like '\\ukhem02001*' | select Name -ExpandProperty Name
    $default = Get-WmiObject -Class Win32_Printer | Where-Object Default -EQ 'True'| select Name -ExpandProperty Name
    $default = $default.Replace("oldprintserver","newprintserver")
    foreach ($queue in $oldqueues){
        $path = $queue.Replace("oldprintserver","newprintserver")
        $net.AddWindowsPrinterConnection("$path")
            $net.RemovePrinterConnection("$queue")
    $net.SetDefaultPrinter("$default")

    You should be using PrintManager to migrate printers.  It is part of the Server set and needs to be used because it will manage all printers in an AD domain correctly.  SCCM is only useful when you are running a pre-WS2008 domain.
    ¯\_(ツ)_/¯

  • Hp design jet 4500 no print from printer

    Unit asking for starter print heads, installed and ran purge ok. Came to a ready state and started the print head alignment. You could see from the start that only a small portion of the black was printing and nothing else. I had previously cleaned print head connector in the carriage, I then ran print head recovery, twice, very small improvement. Ran several diagnostics and had no error's. Switched print heads and still no change in print quality. If new set of prints heads do not fix issue, any suggestion on what would be the next part or path to follow. Oh yes, the started print head kit were full of ink.

    Hi Ravery, 
    This is a commercial line product. For the best answer to your questions you will need to repost your question to the following links. 
    http://h30499.www3.hp.com/t5/Business-Support-Foru​ms/ct-p/business-support 
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-​p/bsc-413 
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Poor Color printing from Printer

        Now that one problem is solved, I have a bigger one. My new computer, designed and made to my liking, prints hues 5-8 shades darker than my LCD monitor.System: Vista 32 -bit, service Pack 1, video card Nvidia 9400GT Pci/SSE2, 2666 MHZ, video mode 1680x1050, physical processor count: 4, memory used by PS 70%.   My Photosmart printer, before Vista, printed gorgeous colors with  the computer that was replaced. I use "Photoshop Manages Colors", but the final rendition is not good.
       I've not worked in color for print with this new printer at all, and  I'll have brochures and poster work coming up in the Fall. I can't offer crummy color for the final productions.
       . Hope you can help get this 'puter doing better stuff. I'm wondering if the Video card could be the problem? I updated it a few weeka ago, and print colors were far from the LCD.  Ideas for getting better color intensities are needed and most welcome.  Thanks in advance....mm

    Marie,
    It should be one of the grouping on the bottom "HPpspro........"  depending on what paper you are using.  Probably either the bottom one or the 4th one - ending in "tricolor+photo"  you might need to try a couple and see.
    You seem to be having troubles with drivers for the "puck" ( the device that does the measuring).  On mine, those drivers were installed with the program and should have recognized.  But you seem to have found them elsware.  from the screen pic that you sent, the "win zip" option should allow you to open a zipped file.
    Doug

  • How to stop HP Photosmart C3150 All-In-One Printer from printing test page

    The printer prints a test page when I turn the printer power on. Is ther away to turn this function off? The printer worked fine until I put new black ink (HP92) in. The computer syst. is Windows XP Professional Ver. 2002 Service Pack 3

    Hard Reset – While printer is powered ON, pull
    the power cord from the printer then from the
    wall. After 30 seconds reconnect power to wall
    and printer. This will trigger a ‘dirty power up’
    and restore the printer to a known good
    condition (if it is possible). No user settings are
    lost with a ‘hard reset’.
    This ‘Hard Reset’ is one of the most powerful
    tools to use when the printer hardware is not
    functioning properly!
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

Maybe you are looking for

  • Can you customize what folder MAIL goes to when adding attachments?

    Can you customize what folder MAIL goes to when adding attachments? My friend has 2 email addresses for businesses. He has invoices in folders for both, and wants to set up the Mac like this: When he writes from one email address and attaches documen

  • CR4E Unable to Insert Table (or Drag and Drop)

    <p>Please Help. </p><p>Using Release 11.8, I am unable to insert a table from te DBBrowser (aka MyEclipse DataBase Explore) onto an existing Crystal Report.  I can select and drag a table easily, but I'm prevented from dropping it onto the Crystal Re

  • Pcuigp.xssfpm.java.FPMRuntimeException: User J2EE_ADMIN does not exist

    Hi colleagues, We are getting the following error in Personal Information of ESS(Employee Self Service) com.sap.pcuigp.xssfpm.java.FPMRuntimeException: User J2EE_ADMIN does not exist in this period      at com.sap.pcuigp.xssfpm.java.MessageManager.ra

  • IPod nano to TV link

    Just received my AV cable set through this outlet and after hookup all I get is music through the TV but not pictures. Any ideas?

  • Quicktime No longer provides Sorenson3 or compatibility with RED???

    Ever since I updated my Quicktime to 7.4.1 (without doing enough research on the topic unfortunately) I have not been able to view quicktime files created from the RED camera and Sorenson 3 seems to not be an option for outputs anymore. Is the RED Co