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.
Satya
Try 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
Similar Messages
-
Adobe Reader 9.4.6: how to skip print dialog
Hello,
in our company we implement a freestanding self-services kiosk project.
The kiosk uses a browser, which links with internal application server, which contains the required information.
There's also an option to print some documents via Adobe ActiveX PlugIn. Explored some versions of Adobe Reader, we considered that the most appropriate is version 9.4.6. We strongly needed to set Adobe Reader so that the only clickable button in upper toolbar is “Print” button, and also side navigation panel is hidden (because pdf file opens in the frame within the kiosk system page). We've succeeded with this issue.
But now we experience one more problem. When the user clicks the "Print" button, the print dialog appears. Is it possible to choose default printing settings and start printing avoiding print dialog by some standard options?
Or maybe you can provide us an event, which initiates Adobe print dialog, so that we can use it to fire the OK within java script.
Best regards
Anton.Looks like you need a silent print, take a look at:
http://blogs.adobe.com/acdc/2011/03/silent-print-in-acrobat-using-javascript.html
The steps are for Acrobat. You'll need to see if they work with Reader. -
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. -
Print Dialog not opened -Smartform
Hi Experts
We have defined a output type and assigned a smartform for Invoice.
The problem is we have included 60 billing items into a single billing document.
So, when we try VF02 and the Issue output type, it opens the window and select the output type then give the print preview, the print dialog window is not opened.
when i try it debug mode, the RV_MESSAGE_DIALOG fm returns the value(4) as OTHERS.
So it leaves the transaction, how to solve this problem, what could be the reason actually. Its most urgent, pls anyone help me.
Thanks in advance.
Regards
Rajaramsolved
-
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 -
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 -
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 -
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 -
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.
-
How can we print using the windows printer dialog window?
Hi,
We recently got new printers and a printer setup on our server that are set to print in greyscale as a default. In the past the printers defaulted to printing in color. When I create VI's and reports I have used to set "Print on completion" or the print option from the Report Generation Toolkit, and I have received my prints in color. After changing the printer drivers on the server any printing method I used to do from LabVIEW will always produce greyscale prints. These prints are fine for everyday use, however we need color prints when the documents are for customers or for other official use.
If I could only send documents/VI's to that process the user could override the "greyscale" setting and select "color" in the cases where we need a better looking print. Obviously the other option is to save the document/VI as a file and later print it from any windows software (Excel, Paint etc.).
Do anyone have any neat tricks for printing using the windows printer dialog?You can change printer settings programmatically via a .NET assembly. You can also bring up the Print Dialog to change settings manually before printing.
More info on the .NET assembly for colour settings here:
https://msdn.microsoft.com/en-us/library/system.drawing.printing.pagesettings.color(v=vs.110).aspx
An NI KB link on calling a print dialog:
http://digital.ni.com/public.nsf/allkb/80DD23A28BD8ADF9862575AC0077B1BB?OpenDocument
CLD -
Print dialog window disappears
Currently testing the following configuration:
App server version = 9.0.4.1
Host = Tru64
Jinitiator version = 1.3.1.13
Webutil version = 1.0.5
Problem:
When invoking the Oracle 'print' built-in and clicking on the 'ok' button on the print dialog box, the application browser is moved behind all other windows currently displayed on the desktop. Has anyone encountered this issue and if so, how did you solve it? (We use the 'print' built-in on every form to allow the user to do a screen print of the form).
Thanks for your input.did you find any solution to this print issue. We are experiencing for one client machine. Thanks in advance.
-
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. -
How to suppress print dialog box from popping up under a condition
Greetings...
There may be a better way to accomplish what I'm trying to do, so I'm open to outside-the-box suggestions.
I have a pretty simple page which lists a set of statuses and descriptions of each. The user can edit these status flags and their descriptions on the page as well. When I view the page in "printer friendly" mode, I see a nice simple report of what the statuses are and their descriptions. Everything works great so far.
In our work request system built in ApEx, there's a page where someone can view the details of a work request, including the current status. When someone clicks on the help of that item, what I'd love to do is simple show the "printer friendly" version the status page mentioned above in a pop up window. My problem is that the print dialog box automatically shows up when a page is displayed in "printer friendly" mode and I do not want this to happen in this case.
I see the javascript code in the Printer Friendly page template which causes the print dialog box to show up automatically, but I don't want to remove it in the template just for this one case. This would suppress the print dialog box on all "printer friendly" page views and the users are used to it showing up when they ask to print the page.
I guess I could create a custom request to pass to the master status page which would pretty much do everything that the "printer friendly" mode is doing, but that seems like a lot of work when I'm so close to using something that is built in.
Am I not seeing some simple other way of doing it or perhaps asking too much? Any suggestions?
Shane.Hi,
I think you have to call the FM GET_PRINT_PARAMETERS and pass NO_DIALOG = 'X'.
Something like:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
IMPORTING
out_parameters = ls_params
valid = lv_valid
EXCEPTIONS
OTHERS = 1.
NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
* Display Table
lr_table->display( ).
add: Spool numbers can be found in TSP01 or in system field SY-SPONO available in the submitting program...
Hope it helps,
Kr,
m.
Edited by: Manu D'Haeyer on Sep 28, 2011 10:02 AM -
How to Screen Print from Windows 7 in Bootcamp Without "Fn" Key ?
Dear Friends,
For GIS software, I have Windows 7 on my Imac 7, which uses Mac OS X 10.6.8. All of the information which I have found on the Internet about doing a screen print for Windows 7 in Bootcamp on this operating system state that 1. pressing Fn + F11 prints the screen and 2. Option+Fn+F11 prints the active window. Unfortunately, the two Mac keyboards, which I have, do not have a "Fn" key.
Is there anyway to do a screen print without a "fn" key on a person's keyboard? If so, how does a person do it?
Any answers that can be provided for the above questions will be greatly appreciated.You should ask Windows questions in the Windows forums. But here is an answer: In Windows using these keystrokes, Start > All Programs > Snipping tool.
Maybe you are looking for
-
Oracle 11g client installation on Windows 7 Home Premium (64-bit)
I'm having trouble installing the Oracle 11g client installation on Windows 7 Home Premium (64-bit) machine. Can Oracle 11g client even be installed on the Windows 7 Home Premium 64? Thanks!
-
Why can't I make a kik account? I have IOS6 and higher and my restrictions are turned off! Please help!
-
Need reset box with flip-flop green LED and reset button
Before I build up a large number of these, is there an off-the-shelf box with flip-flop green LED and reset button?
-
Hard reset & tapping the center of the target
My first problem is I can't find my instructions for my Tungsten E2, so please excuse my inability to use the appropriate words to describe functions, etc. My current problem is that the screen isn't reading my taps from my stylus. I have tried to r
-
Macbook Pro 2011 Very Slow for Yosemite 10.10.1
Good night, My macbook is very slow when I power supply to retreat, even 100% loaded this causes problems. Applications are slow to open, the mouse is slow, loses performance. The battery was recently replaced. I've had this problem in OS mavericks a