Open Printer dialog window
Can I open the Windows Printer dialog window in Forms during runtime and then send the printer name that the user selected to Oracle Reports?
Here is the code for showing the WINDOWS PRINTER DIALOG BOX. REMEMBER YOU HAVE TO ATTACH D2KWUTIL.PLL file for this to work.
declare
v_printer_name varchar2(1000) := null;
v_port varchar2(1000);
v_exception boolean;
begin
win_api_dialog.select_printer(v_printer_name,v_port,v_exception);
wmessage('Printer is '| |v_printer_name);
:b_selection.local_printer := v_printer_name;
exception
when others
then
:b_selection.local_printer := null;
end;
null
Similar Messages
-
When printing Firefox does not open the Print Dialog window
When printing at our office we often need to print to multiple printers and not just the default printer. When printing in Firefox, however, the print automatically gets sent to the default printer and I do not get a print dialog window. I have reset Firefox's printer options, changed the prefs.js file, and launched Firefox from safe mode to check if an add-on is affecting printing - all to no avail. When I print from Chrome, or (shudder) Internet Explorer I get a dialog box giving me printer options. Your help and responses will be appreciated.
There is a hidden preference to bypass the dialog, but it definitely is not set by default. To check for that:
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box above the list, type or paste '''print.''' and pause while the list is filtered
(3) If you discover a preference named '''print.always_print_silent''' there's your trouble.
Next question would be, where did it come from?! Some possibilities:
(A) A user.js file that overrides prefs.js at startup. See: [[How to fix preferences that won't save]].
(B) A lock file in the program folder. See: http://kb.mozillazine.org/Locking_preferences -
How to open print dialog from web dynpro abap application
Hi experts,
I have a web dynpro application with several views and onone of the view there is a button that should open print dialog with printers list and all other options (standard print dialog we see in windows). I did reserach on SDN and came to now that this is a limitation of web dynpro abap. I did find some code also but unfortunately our current version of ABAP(7.0) do not support the code I found. I am not able to find any proper solution for this. Could someone please let me know how I can open a print dialog by clicking on a button in web dynpro abap? Any sample code or any information would be greatky appreciated.
Thanks.
MithunHi Mithun,
Have you check this?
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f8/872806981d4411b5ce51a00207ed31/content.htm
and also go through..
How to print in a web dynpro application
Print button
Cheers,
Kris. -
Open Print Dialog using JavaScript
Hi folks, I'm trying to open dynamically the print dialog window for printing the PDF (Ctrl + P) in WebDynpro ABAP using JavaScript.
The JavaScript seems to be executed only for Interactive Forms, however I don't need to use interactive but only Print-Based Forms.
This line of code works if I assign it to an event like click for a button, I tried to call it in the doc:ready event but it does not work
xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0);
Please I need some help and I hope it's possible!
AlexThanks, we are getting close!
This line of code works, but it does not prompt me with the print dialog box (because of the first parameter is 0)
xfa.host.print(0,"0","0", 0, 1, 0, 0, 1);
I got this message box "This document is trying to print. Do you want to allow this?" Yes/No....
Ok, that works but I would like to have the standard print dialog window instead, where you could select your printers.
This line of code prompt me to save the XDP, this is not what I want
xfa.host.exportData("",1);
In which event should I place the script??
Also, script only seems to be executed for interactive forms, I don't want to generate interactive forms, they are more heavy to render, this is only for print based forms!
thanks
Alexandre Giguere -
Print dialog window in report generation
Hi...
I would like to create a report from my database and send it to printer. Basicly i want to use something like print report.vi in labview examples. But the sample is print directly to the default printer, how can i display print dialog window so i can select the printer and set another properties.
Thank youAfter some searching, I found this thread:
http://forums.ni.com/t5/LabVIEW/Printer-selection/td-p/23136
Some VIs were posted which look like they should do what you need.
Matt Lee
National Instruments
Applications Engineer -
How to Skip Print dialog window in smartforms
Hi Experts,
while printing the smartforms i dont want Print dialog window. I want as and when i pressed the print
button it'll directly print with the specified printer.
I tried with lot of option but it is not working for me . May be i missed some prameter to pass.
Have a look in to my code below and make me correct .
DATA : WA_CPARAM TYPE SSFCTRLOP,
WA_OUTPUT TYPE SSFCOMPOP,
JOB_OUTPUT_INFO TYPE SSFCRESCL.
WA_CPARAM-PREVIEW = 'X'.
WA_CPARAM-NO_DIALOG = 'X'.
WA_CPARAM-DEVICE = 'PRINTER'.
WA_OUTPUT-TDNOPRINT = 'X'.
WA_OUTPUT-TDDEST = 'LP06'.
WA_OUTPUT-TDIMMED = ' '.
WA_OUTPUT-TDNEWID = 'X'.
WA_OUTPUT-TDDELETE = 'X'.
WA_OUTPUT-BCS_LANGU = SY-LANGU .
WA_OUTPUT-TDPRINTER = 'X'.
CALL FUNCTION FNAM
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = WA_CPARAM
OUTPUT_OPTIONS = WA_OUTPUT
USER_SETTINGS = ' '
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = T_SSFCOMPOP
USER_SETTINGS = ' '
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO = SSFCRESPD
JOB_OUTPUT_INFO = job_output_info
JOB_OUTPUT_OPTIONS = WA_OUTPUT
TABLES
ITAB1 = IT_ZADVMUTH1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks In Advance.
SatyaTry with below parameters, it may help you to close the thread.
WA_CPARAM-device = 'LP06'.
WA_CPARAM-no_dialog = 'X'.
WA_OUTPUT-tdnoprev = 'X'.
WA_OUTPUT-tddest = 'LOCL'.
WA_OUTPUT-tdnewid = 'X'.
SELECT SINGLE * FROM usr01
INTO ls_usr01
WHERE bname = sy-uname
AND spdb = 'G'.
If sy-subrc EQ 0.
WA_OUTPUT-tdimmed = ' '.
ELSE.
WA_OUTPUT-tdimmed = 'X'.
ENDIF.
Regards,
SaiRam -
WebUtil within Oracle Forms (Find File - Open File Dialog Window)
I have successfully configured WebUtil and I can successfully execute the functions. I have been working with PKG_FIND_FILE.Selection function (which displays an Open File Dialog Window).
I cannot figure out why the following is occurring:
When I call the above function, the system typically displays an older dialog window (light blue / gray) window. For a brief time, we were able to bring up the "Windows looking" dialog window. I don't know what we changed in the configuration, but it is now back to the older looking light blue/gray dialog window.
Any ideas on where in the configuration, this would cause the dialog window to switch its "look and feel"
Thanks,
MikeFile dialog look has been changed because of the java version difference.
In Java 1.4 the look is different and 1.5 shows another way.
So check which java plugin and the version of the java
( go to control panel->settings -> click on java and check on version)
Rajesh ALex -
Hi everyone, when i'm getting to select the printer dialog window it doesn't pop up and getting a dump error.
Application has a problem,
Diagnositc file: C:\Program Files\SAP\SAP Business One\Log\SAP Business One_20091126091340.dmp was created.
Please contact support and attached diagnostic file.
Your immediate response is highly appreciated.
Thanks.Hi
Check whether this error is coming while selecting print dilog for specfic document r for all..
If it is coming for specfic doc print then ther is chance is there that PLD might be having some problem, u try with other pld for same & check...if it was not coming then there is problem in Pld only....
If its coming for all , then uprgade to new Patch Level d try. If again its coming then u have to log a Ticket To SAP only.
Giri -
Hello,
I need to print production papers using adobe forms.
Unfortunatelly after saving a production order i get the print dialog window.
Is it possible to print immidiatly to the standard windows printer withtout to select it amnually?
Which setting are possible in "fill_outputparams" for SFPOUTPUTPARAMS?
Thanks in advance,
EvgenijHello
You will have to read the current Print parameters using FM CALL FUNCTION 'GET_PRINT_PARAMETERS' and pass it to structure sfpoutputparams
Try to set the printer to LOCL .
gs_fpoutparams-dest = 'LOCL'.
DATA: ls_options TYPE itcpo.
DATA: lv_dialog TYPE c.
DATA: ls_pri_params TYPE pri_params.
* gs_fpoutparams TYPE sfpoutputparams.
lv_dialog = 'X'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
mode = 'CURRENT'
IMPORTING
out_parameters = ls_pri_params.
ls_options-tdcopies = ls_pri_params-prcop.
ls_options-tddest = ls_pri_params-pdest.
ls_options-tdnewid = ls_pri_params-prnew.
ls_options-tdimmed = ls_pri_params-primm.
ls_options-tddelete = ls_pri_params-prrel.
ls_options-tdlifetime = ls_pri_params-pexpi.
ls_options-tdtitle = ls_pri_params-prtxt.
ls_options-tdcover = ls_pri_params-prsap.
ls_options-tdcovtitle = ls_pri_params-prtxt.
ls_options-tdreceiver = ls_pri_params-prrec.
ls_options-tddivision = ls_pri_params-prabt.
ls_options-tdautority = ls_pri_params-prber.
gs_fpoutparams-device = ls_options-tdprinter.
gs_fpoutparams-preview = ls_options-tdpreview.
gs_fpoutparams-dest = ls_options-tddest.
gs_fpoutparams-reqnew = ls_options-tdnewid.
gs_fpoutparams-reqimm = ls_options-tdimmed.
gs_fpoutparams-reqdel = ls_options-tddelete.
gs_fpoutparams-reqfinal = ls_options-tdfinal.
gs_fpoutparams-senddate = ls_options-tdsenddate.
gs_fpoutparams-sendtime = ls_options-tdsendtime.
gs_fpoutparams-schedule = ls_options-tdschedule.
gs_fpoutparams-copies = ls_options-tdcopies.
gs_fpoutparams-dataset = ls_options-tddataset.
gs_fpoutparams-suffix1 = ls_options-tdsuffix1.
gs_fpoutparams-suffix2 = ls_options-tdsuffix2.
gs_fpoutparams-covtitle = ls_options-tdcovtitle.
gs_fpoutparams-cover = ls_options-tdcover.
gs_fpoutparams-receiver = ls_options-tdreceiver.
gs_fpoutparams-division = ls_options-tddivision.
gs_fpoutparams-lifetime = ls_options-tdlifetime.
gs_fpoutparams-authority = ls_options-tdautority.
gs_fpoutparams-rqposname = ls_options-rqposname.
gs_fpoutparams-arcmode = ls_options-tdarmod.
gs_fpoutparams-noarmch = ls_options-tdnoarmch.
gs_fpoutparams-title = ls_options-tdtitle.
gs_fpoutparams-nopreview = ls_options-tdnoprev.
* gs_fpoutparams-noprint = ls_options-tdnoprint.
gs_fpoutparams-nodialog = 'X'.
gs_fpoutparams-noprint = ' '.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_fpoutparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Sandy -
Painfully slow open/save dialog windows
Before anyone asks, no I don't have a .Mac account and I'm not using iDisk.
So it's not that
Basically, regardless of the app. whenever I select a file in the open file dialog window, I just get a spinning beach ball for about a minute or more. It's driving me crazy. I have repaired permissions, I have repaired the disk, and I have run DiskWarrior over the drive too. No change.
If anyone mentions a reinstall, I'll kill them. I have a 142 applications in my app's folder I don't want to reinstall them all - I just want to get my work done. HELP!!!!!!!!!!!!!!
G5 Dual 2.5, 20 Apple Monitor Mac OS X (10.4.6) Dual 2.5 PPC. 4.5 GB Ram.been yonks I know, but finally tried all things suggested, and the console seems to point the way, but I can't find what it's referencing in the error loop below (any help deeply appreciated):
-- Console Log --
Mac OS X Version 10.4.6 (Build 8I127)
2006-06-03 23:07:39 +1200
Jun 3 23:07:46 TheBridge mDNSResponder: Attempt to register record with invalid rdata: 262 YM4476FQQPP.ttp4daemon.tcp.482311386456084. SRV <<INVALID LABEL LENGTH
2006-06-03 23:07:51.610 SecurityFixer[309] No insecure startup items found!
2006-06-03 23:07:51.901 SystemUIServer[286] Normally CPUMenuExtra would not have been loaded as a Menu Extra.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSReadObjectFromCString is obsolete. Use of this function may cause an overall degradation in the performance of this application, or of the system as a whole.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSCreateDictionary is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSDictionary is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSDictionarySetObjectForKey is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSSetGStateAttribute is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSGetElementForCStringKey is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:07:54 TheBridge /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer: The function CGSDictionaryObjectForKey is obsolete and will be removed in a Tiger update. Unfortunately, this app, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Jun 3 23:08:09 TheBridge configd[84]: SecKeychainFindGenericPassword err= -25308 ( =0xffff9d24, secErrStr=User interaction is not allowed. ) (current= MoonBaseNet)
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10004003
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10004003
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
287: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004
380: Can't checkin with server named com.apple.metadata.mdserver, error 0x10000004 -
Smartform output without print dialog window
i mean..,
when i clicked execute button in smartforms
i don't want to give the values in print dialog window (like LP01 and clicking print preview button)
i want the smart from output when i click on execute button ..,
so can anybody help me plllllzz.
Moderator message: please search for available information/documentation before asking, do not use SMS speak.
Edited by: Thomas Zloch on Nov 10, 2010 1:55 PMyou can help yourself by searchin the SDN, this has been asked & answered more than once.
Just a tip on a sidenote: Studying the interface of the FM which calls the smartform can help a lot. -
I JUST PURCHASED A HP LASERJETPRO P1102W BUT THE PRINT DIALOG WINDOW IN CS6 IS DIMMED AND WILL NOT ALLOW COLOR SEPARATIONS TO BE PRINTED?
Save as a PDF and print the separations out of Acrobat.
-
Slow opening print dialog screen in Windows 8.1
I have Adobe Reader 11.0.5 and am using Windows 8.1. When I click on the print icon, it takes 20 to 30 seconds for the print dialog screen to open. This is maddening. Does anyone know why and how to speed it up?
Hello eycon
Try out the article below to troubleshoot your issue with iTunes freezing on you. Also check to make sure that when you removed iTunes, did you uninstall in the order of the second article as it does make a difference when troubleshooting the issue.
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
http://support.apple.com/kb/ht1923
Regards,
-Norm G. -
KDEmod very long time to open print dialog
Then I want to print something from a KDE application it takes a few minutes for the print dialog to open while I can't use the application I want to from because the window is blocked.
I have set cups of from systemsettings and the printer is a Dell 2135cn (network printer) using the dell 3100cn driver.
The print dialog come up almost at once in firefox (shiretoko) but the printed fonts is very ugly, which they are not from KDE applications.
Any idea how to fix this?Hi,
Have a look at this post :- Very large Input form-how to handle
Cheers
John
http://john-goodwin.blogspot.com/ -
Print dialog window does not go away
Hi,
This is an issue I've experienced many times. When I try to print a web page from Safari, the print dialog opens, I select the printer and/or orientation, then I click on the "OK" button. But, the window does not respond, Safari seems to be working (it does not appear as 'not responding' in the 'force quit' dialog and the menus are selectable. But the window does not go away, nothing is sent to the printer, and Safari does not respond to certain operations such as moving to another tab, go back, or change the url, so basically I am stuck, no printing, and end up closing safari to open it again.Hello mario:
Is this an intermittent problem, or does it happen all the time? I would, at a minimum, run repair disk from your software install DVD and also run permission repair from your HD.
I would also trash the Safari preference file (com.apple.safari.plist) and restart.
Of course, the problem could lie in the connectivity with your printer, but that is another issue.
Barry
Maybe you are looking for
-
TV-Out and analogue issues with NX6800GT TD256
Hi, I bought this card about two months ago and am having issues with it... Firstly, on Sunday the analogue output for the monitor stopped working correctly. All of the pictures coming through had this kind of green overlay (so the text even in bios
-
After the last upgrade the tabs will begin refreshing at times it slows my movements the page freezes til it catches up. Or if flashplayer is running it will crash. One of the previous versions had this problem but there was an area to go to, to disa
-
When I go to open my phone normally my pass code screen pops up. It was working fine all day and then all of a sudden it started freezing. If I slide the bar across to open my phone it just freezes on that screen and I can't get into my phone. I had
-
Links not opening right target
I am using frames, I now know the downfalls of them or at lease the general gist of it. Anyway, most is workable for this site's needs. I have no idea though now some name save changes or something screwed up my links and now my links that should tar
-
Epson Stylus Photo 700 won't print in OS 9.2
HI, I got my usb to parallel adapter to work with my Stylus Photo 700 on my Blueberry with OS 10.3.9 and usbtb and gimp=Print. I have been trying to figure out how to get it to work in the classic environment-9.2.2. The Epson window comes up and Ii h