|
I am trying to use some Word 2007 automation where we give the user the ability to select a printer to print to and compile a word document. We give the ability to print locally or on a network printer. Network printers are specified in the code by their...
Started by Jeremy Edwards on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
We now use the Win32 API directly.
printer?
We ended up fixing this problem outside of Word.
|
|
I'd like to be able to specify two different printers for two different jobs. I'm using the following class to handle printing these, but regardless of what I do, the default printer is always the one that's printed to.
Public Class Receipt : Inherits...
Started by Blumer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It uses whatever printer....
Perhaps your provider printer name is slightly different from what it should be, because I can.
Or perhaps the printer name you specify isn't valid and the default is used as a backup.
Print.
|
|
Win 2003 R2 setup. I can push the printer via group policy, and pushprinterconnections.exe, but the printer isn't set as the default printer. Any ideas on how to set the default printer for an XP box via group policy?
Started by WaldenL on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
If it can't find("WScript.Network....
The first problem is that the default printer setting is user that loops looking for the printer to exist before it tries to set it as default.
This is a surprisingly annoying problem to solve.
|
Ask your Facebook Friends
|
Within the Find Printers dialog, if a user clicks the Find Now button, all available printers on the network are shown. The printers seem to appear in a somewhat random order though where I'd expect them to be sorted by name (or something) by default....
Started by Matt Hanson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If they are appearing randomly, it is likely sorted by which printer responds first to the request.
|
|
Using the Wscript.Network object shown below, is there an easy way to retrieve the default printer on a machine? I know how to set the default printer, but I'm looking to get the current default printer name. I have a mixture of Windows 2000, XP, and ...
Started by Mark on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can try retrieving the default ....
Sorry
Greetz, GHad
The WshNetwork.EnumPrinterConnections collection doesn't provide any information about the default printer.
To get the default printer from this collection.
|
|
How do I set the windows default printer in C#.NET?
Started by jms on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://cheeso.members.winisp.net/srcview.aspx?file=printer.cs
using System; using System.Drawing.Printing; using System.Windows.Forms; using System.Runtime....
You can use WMI as well.
Here's how to pInvoke that.
Using the SetDefaultPrinter Windows API.
|
|
I need to get the default printer name. I'll be using C# but I suspect this is more of a framework question and isn't language specific.
Started by Kevin Gale on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It starts with all default PrinterSettings.InstalledPrinters method....
PrinterSettingsThe easiest way I found is to create a new PrinterSettings object .
Values, so you can check its Name property to get the name of the default printer.
|
|
I've recently discovered on the Vista boxes in my office that if a user logs in from outside the network using Remote Desktop to their office PC the default printer changes. That change of default printer is really annoying when they come back to the ...
Started by nlinus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Is it changing to the one on their home PC? Terminal Server/RDP setting to Disable printer you could create a quick visual basic script to reset the printer, and put it in their startup folder "printer name".
|
|
I'm looking for a way to find the name of the Windows default printer using unmanaged C++ (found plenty of .NET examples, but no success unmanaged). Thanks.
Started by Blumer on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
GetDefaultPrinter(NULL....
Also note: getting zero for the default printer ) { numprinters=0; } { DWORD size=0; // Get the size of the default printer name.
And the default one if there is one set as the default.
|
|
I'm trying to determine the current paper type selection on the default printer using C#.
I've determined the default printer using WMI and enumerating through the Properties collection, I can see there's a CurrentPaperType string property, but on both...
Started by Rob Cowell on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can get....
Is there any particular reason why you use WMI instead of the .Net printer classes class which contains all PaperKinds that are currently available in the printer (could be more than the built in .Net classes like Foxfire said.
|