Supress Printer Dialog box (Operating System) in Payslip Printing
Hi All,
I have design the smartform to print the payslip. In the main window i have created the loop and then desing the templates to display the details of employee and the wage types.I have only one page in it. I have develop the print program to call the smartfform. But when i try to print the payslip for number of employees the printer dialog box (Operating system Level) is appearing for the number of times the employees i have selected.I am able to suppress the Print Preview dialog box from SAP it is not showing and i have given the parameters to print immediately.But the Problem i am facing is if i select 3 employees the printer dialog box is coming 3 times. i have to click 3 times to print the payslips .
Mustafa
Hi,
Please find the code below. I have made the changes but agian it is asking for the printer dialog box for the number of times the employees i have selected.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZHR_F_MMG_PAYSLIP'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = V_FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at i_payslip_details.
gv_control-no_dialog = 'X'.
gv_control-no_open = 'X'.
gv_control-no_close = 'X'.
I_SSFCOMPOP-TDDEST = 'ZMMG_Print'.
I_SSFCOMPOP-TDNEWID = ''.
I_SSFCOMPOP-TDNOPREV = 'X'.
AT FIRST.
gv_control-no_open = ''.
endat.
AT LAST.
gv_control-no_close = ''.
ENDAT.
CALL FUNCTION V_FM_NAME
EXPORTING
CONTROL_PARAMETERS = gv_control
OUTPUT_OPTIONS = I_SSFCOMPOP
TABLES
I_PAYSLIP_DETAILS = I_PAYSLIP_DETAILS
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Similar Messages
-
Pages button in printer dialog box is deactivating while taking print ?
Hello exports,
while taking print abap reports (developed using smartforms) pages buttoon (from- to) in printer dialog box
is by default is deactivating .How to activate this button ? who will do this one (Abaper or basis guy).
pls help me in this.Hi,
So, as you see a field "from ... to ...", I think you are talking about the "background print parameters" dialog (this is not the smart forms print dialog, which contains field "page selection").
I don't understand. "Pages from ... to ..." is always displayed, and the user can enter them manually. Do you want to enter pages programmatically?
What is your code or the steps to display this dialog? Is it fully standard or do you use GET_PRINT_PARAMETERS programmatically?
Sandra -
Adobe X no print dialog box and program closes when printing
Have one user who started encountering this problem today:
Opens up PDF
Clicks on the Print icon (or File - Print)
The Print Dialog box never appears
Adobe 10.1.1 program then immediately closes - nothing in the event log
Able to get the PDF to print only if right clicking on the file and selecting Print (but don't get to select any Printing options)
Have tried selecting a different printer with the same results
Have uninstalled and reinstalled the program
Any help is appreciatediammrbojangles wrote:
I have a similar problem with the the same printer. Excel works fine until you ask to print preview, this takes about a minute to appear, and about another minute if you ask it to print too. Once you've printed and are back in Excel anything you try to do now has a delay. I've tried then changing the printer i want to use to a networked one which makes Excel return to it's normal self.
I've also tried sharing this printer to make sure it wasn't the PC but it is the same on any I've tried. -
Printer Dialog Box with No. of copies & Print Range.
I am trying to print a report(oracle) from a form (using a custom PRINT button) and wanted the printer dialog box to appear, for which I used the "WIN_API_DIALOG.SELECT_PRINTER(prtname, port, true)" API in the "When button pressed trigger".
But this API only takes care of a printer change, my issue here is how do I capture the changes pertaining to Orientation, Number of Copies, Print range etc. I know there is the "Properties - Advanced" option in the printer dialog box but changing values there doesn't help, as I had already mentioned the API passes only printer name.
So, if any one has faced a similar issue and has a solution,
PLEASE RESPOND IMMEDIATELY !!!
ThanksUnfortunatley there is no way to give Forms that information. The printer dialog in D2kwutil is only designed to get the printer name / port, none of the other information. Even it it could Forms does not expose an API to effect the PRINT; built-in.
-
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. -
Print Dialog box has changed along with printing function
I installed the latest update and now when I print there is a new dialog box. The problem is on a multi page job it only pulls a few pages from the paper tray and then makes me use the manual feeder for the remaing pages, All paper sizes of the print job are the same and I only have one tray. I am printing on a Brother MFC 4860N. Any solutions? Thanks
Carolyn -
Thank you for your respose of 5/1/09 -- sorry for the delay in getting back to you.
1.) I tried your suggestion, but the problem is that Apple and HP have worked to include all/most of the HP software into OS X v. 10.4.11 and beyond. I did not find in my user/.../Library/Preferences .plist files directly referencing my HP 990 Cse printer, which was the only printer not displaying the Printer Dialogue Box.
Open your User/..../Library/Preferences to see the list of .plist files for HP and other manufacturers.
The open the [top level] your-hard-drive/library/Printers/HP to see the [root=basic] files which, I believe, are the actual OS X system files which are on the original System CD or are downloaded for the updates.
2.) I finally got the Printer Dialogue Box for the HP 990 Cse to work --
a.) I ran the OS X Printer Setup Utility app.
b.) I then dragged the icon for the HP 990 Cse printer to the trash; and emptied the trasn.
c.) Restarted the OS X.
d.) Ran the OS X Printer Setup Utillity app again
e.) When the HP 990 Cse did not appear in the list of printers I clicked the "Add" icon.
f.) I selected to add the HP 990 to the Printer List
g.) Nothing happened when I tried to access the HP 990 Printer Dialogue Box.
h.) I did a restart.
i.) I then did a print job using the HP 990.
j.) When the HP 990 icon appeared at the right end of the dock, next to the trash, I grabbed it and dragged it to the place in the dock where I wanted it to reside.
IT WORKS JUST GREAT NOW !!!!
Thanks for your help, as you helped me consider the problem at a deeper level.
Samuel -
Suppress the Print dialog box in Air /Flex
Hello,
I am trying to print the pdf files(which is located in my system) directly in the printer without showing print dialog box .
I tried to print the screen without displaying print dialog box using flash.printJob.start2().
but am not able to print pdf files in the printer its printing dark screen only also it just printing the UIcomponent size only. its not printing all d pages available inside pdf file.
Can you please help me to resolve this issue.Hi
I tried to open a new bug report , that screen itself not displaying properly and I couldnt able to enter any comments there ,I can see only the option buttons.
and I am trying to print the documents which is having mutiple pages using flash printJob . the following code I have used . here i am trying to Print Textfield .
Could you please me how can I add document/pdf file/text file instead of TextField.
va txt:TextField = new TextField();
txt.text = "Hello Test" ;
var sheet:Sprite = new Sprite();
sheet.addChile(txt);
and in printing
If(PrintJob.start2(null,false))
PrintJob.addPage(sheet);
PrintJob.send(); -
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 PMHello,
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 -
Print Dialog Box (Properties is Disable)
Hi,
i have a issue with Print Dialog box.
When user giving print> one print Dialog box coming (Print Screen List) is coming. We are set printer name here.> On the next screen, the system displays a subscreen (Print). Here one box is coming Properties. But that Box is inactive.
So can we active that Properties box? Is that properties box will related to SAP or Windows printer?
RegardsHello,
Thanks for response. I am not asking about (Print Screen List) properties.
After (Print Screen List), one more Pop ups screen will come. On that screen one Properties is there. I am asking about that.
Regards
Manoj -
Print Dialog Box for Addon is not showing in Terminal Server
Dear All,
I have created a addon for Automatic Sales Invoice printing that prints the crystal report directly to the printer bu opening a
print dialog box for printer selection through SDK code.
The Same addon works fine on the server with print dialog box being showing through SDK code.
But while running on Terminal Server , print dialog box is not showing any printer though printers are redirected to that
terminal server.I am not getting whether the problem is in my addon or in the terminal server printer settings.
Please suggest as i need to know the reason urgently.
Thanks
AmitHello Edward,
Thanks for your reply .
But the problem is that while running on normal server the print dialog box appear with the printer name in my addon for printer selection .
But while using terminal server , the print dialog box is not getting any printer in the dialog box .That's the major concern for me
is their any way to check that why the printers are not showing in print dialog box.
Thanks ,
Amit -
Printer dialog box does not appear in Photoshop CS.5
I use Photoshop CS.5.1 with a Macbook 2013 using version 10.9.5. The printer works perfectly with all other applications but in Photoshop no printer dialog box comes up and the print job does not appear in the printers queue. Anyone the same issues?
First, try nuking (deleting them and letting the application create new ones) your Photoshop preferences:
To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
Important: If you re-create the preferences by deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here.
Mac OS
Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files. -
I recently upgraded Reader to XI and am now getting this corrupt Print Dialog box when I try to print a pdf from within IE10. Has anyone ever seen anything like this? Windows 8, IE10, Reader XI
I have 600 users at my company that get the garbled print dialog box with Adobe 9 and IE 11. I used Group Policy to turn on Protected Mode for the Internet and Intranet and now the print dialog box works. Here is where you can find the setting on local group policy (for testing if you are in corporate environment).
Computer Configuration->Administrative Templates-->Windows Components->Internet Explorer->Internet Control Panel->Security Page. You will then go to Internet Zone or Intranet Zone depending on your needs and then Enable "Turn On Protected Mode". Run a gpupdate from command prompt. Hope this helps. -
Deleting unused printers in Classic print dialog box
How do I delete unused printers that appear in the printer dialog box? Thanks!
Open Printer Setup Utility, select the printer you want to delete, click on the Delete icon in the toolbar.
-
Is here a way to disable the print dialog box?
I am trying to disable the print dialog box so that a page can print directly from a javascript "print" command. How can I disable the print dialog box so that it will print automatically?
You can try creating a new boolean preference - '''print.use_native_print_dialog''' - and set it to '''false''' and see it that still works. That pref was removed from about:config a number of versions ago, but the underlying code might still be present, so give it a try.
http://kb.mozillazine.org/About:config -
Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'
Word, and powerpoint application are working fine.
Environment : Windows 7 64-bit, MS Office 2013 64-bit
Steps to recreate
(i) Create new user account and add to any group ( do not log on using this
account)
(ii) runas /user:<new user account> <fullpath>\excel.exe
it will ask password so enter on command prompt
(iii) open any excel document and click File->Print
(iv) verify result (it is failing) it pop ups below error
Error:`Microsoft Excel
No printers are installed. To install a printer click the File tab, and then click
Print. Click No Printers Installed, and then click Add Printer. Follow the
instructions in the Add Printer dialog box.Sorry for late reply i was not at work
I have a default set excel is still throwing error. Interestingly winword , powerpoint and publisher are working fine. I am able to print from all office applications except Excel.
Probably excel behaves differently from other office applications.
Probably it is a bug in excel
Workaround : Log on to a system once using newly created account then runas excel using this account then print works fine.
It means something in user profile should be configure to run excel print operation. Could you please somebody help what I need to configure in user profile that makes print operation success?
Maybe you are looking for
-
How to get all GL accounts for each account in a given bank...
Hello Experts, Is there a way to get all GL accounts for each account in a given house bank? IN our company, there are 5 GL accounts for each bank so 1 GL for 1 account. they are for recon, payables, receivables, etc. I checked table T012K but it onl
-
Command to Stop and Start the SBO Mailer Service
Good day, I have an issue on my SAP server (SAP 2007 SP01 PL10) where the SBO Mailer server is intermittently stopping. This is causing Emailed Alerts and emails from SAP to stop working. I want to create a Scheduled Task in Windows to run a batch f
-
CO-PA characteristic group for recurring FI document?
Hi. We have a characteristic gorup assigned to "FI: Postings" - business transaction RFBU, but when the user tries to create a recurring document, using transaction FBD1, she gets all characteristics, so the group is not assigned in this case. What b
-
I've noticed a practical issue with iPhoto's File->"Subscribe to Photo Feed..." feature. Every time that iPhoto checks a subscribed RSS Photo Feed for new content it will re-download each and every photo in the feed. This occurs even if iPhoto has a
-
Add generic partition getting ORA-14020
Hi, i wrote some test statements, for trying to achiev that. but now i got an ORA-14020: this physical attribute may not be specified for a table partition i try to generate a generic partition name with the SYSTIMESTAMP. the stement i use is: alter