Questions tagged [printer-properties]

27 questions
8
votes
1 answer

Does PrinterSettings.GetHdevmode() have a bug?

I would like to be able to change the printer properties without bringing up the printer properties window... Using the DocumentProperties (imported from winspool.drv) function has so far failed, because while it is easy to suppress the dialog from…
Brandi
  • 1,549
  • 4
  • 24
  • 32
6
votes
2 answers

How can I invoke the dialog to set printer options manually?

I'm using WPF and need to let users set some print related options like printer and printer properties (e.g. papertray, landscape/portrait, duplex, etc). I'm aware of the PrintDialog class to get a PrintQueue and PrintTicket object. However I need…
FromTheMountain
  • 228
  • 4
  • 8
5
votes
2 answers

Modifying PrinterSettings after PrintDialog was shown

I am trying to modify the System.Drawing.Printing.PrinterSettings object that I get from the System.Windows.Forms.PrintDialog after the dialog has been shown to the user. Although I am able to change property values on the PrinterSettings object,…
user1182735
  • 764
  • 9
  • 21
4
votes
1 answer

Printer properties Dialog Saved changes

Hi i want to save the changes i made in printer preferences but they are ignored . I am doing this in c# Please help me thanks public partial class Form1 : Form { public Form1() { InitializeComponent(); } PrintDocument pd =…
abdul
  • 157
  • 5
  • 18
4
votes
0 answers

Printing with more than 96 dpi in WPF

Let me explain the problem, I'm getting stuck in it If I change the dpi settings from the dialog of Printing Preferences of a virtual printer like PDF Creator or any printer that allows to change this setting, and then set a breakpoint like the…
user1809065
  • 105
  • 8
3
votes
1 answer

Default printer settings are ignored

Using Windows Print Spooler API's, we can print out XPS files. The problem is that the print spooler ignores the default printer settings. (We've given up on trying to apply printer settings. Default printer settings will just have to suffice.) For…
Peter Thönell
  • 115
  • 3
  • 11
2
votes
1 answer

How To Set Default Printer in Silverlight?

I want to select printer in Silverlight program, just like ATM or POS that will automatically print without selecting printer. I browse internet and found: http://bytes.com/topic/c-sharp/answers/255914-set-default-printer-machine, it says that using…
2
votes
1 answer

Print a PDF File in Python but show the printer properties dialog window before using python

I am currently working on a script that will crop PDF files to my requirements and merge them into a pdf file. This should be printed directly afterwards via the default printer, but using the side printer tray and in A6 format. Therefore I want the…
Erdorano
  • 21
  • 2
2
votes
2 answers

printing prints slowly for bold text

i have page , in this page i have around 45 lines , the first 5 lines are document heading, and this document heading css style is just font-family-arial, font-weight bold , and heading inserted inside the td , no more style, problem is , this…
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
2
votes
1 answer

Access Printer Status using Winspool

Hello I've used this example on how to access printer status using winspool. //Code written by Mark Middlemist - @delradie //Made available at http://delradiesdev.blogspot.com //Interop details from http://pinvoke.net/ using System; using…
rj tubera
  • 747
  • 4
  • 29
  • 51
2
votes
1 answer

Unable to set the default printer on a remote machine using prnmngr.vbs

I am using WMI to connect to my lab machine as a domain admin. I then run this command line to create a printer: cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p Test002 -m "Canon Inkjet iP100 series" -r FAKE002 That…
Bruce
  • 21
  • 3
2
votes
2 answers

How to get Unique/Distinct Printer Model Name in C#?

What I am trying to do: I am creating a database of all printer installed on a computer. Using PrinterSetting.PrinterName and PrinterSettings.InstalledPrinters I am getting PrinterName. I have also tried winapi Win32_Printer but this and my above…
Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208
2
votes
0 answers

Accessing printer properties (remaining paper count) programmatically

I have a photo kiosk that does picture taking and printing. The kiosk starts automatically in the morning and shutdown at night using Windows' Schedule Task. Now I am trying to add an email alert to the kiosk system so that when the printer is…
Scott
  • 308
  • 4
  • 20
2
votes
3 answers

Find a printer's default duplexing option

For a given print document's PrintSettings the Duplex value might be (and are likely to be) set to Duplex.Default. How can I find out whether that means the chosen printer will or will not print in duplex or not? How can I find the default values…
Reddog
  • 15,219
  • 3
  • 51
  • 63
1
vote
1 answer

c# printdocument

I am using printDocument to print from a list view. This all works fine. Originally when the print dialog opened I could use the default printer or choose another (such as adobe pdf or send to one-note). Now the dialog still displays but no matter…
flo
  • 1,471
  • 2
  • 12
  • 13
1
2