Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: custom file properties Pin
Eddy Vluggen28-May-14 0:28
professionalEddy Vluggen28-May-14 0:28 
QuestionFile opertions Pin
jeffingeorge27-May-14 22:36
jeffingeorge27-May-14 22:36 
AnswerRe: File opertions Pin
Karen Mitchelle27-May-14 22:51
professionalKaren Mitchelle27-May-14 22:51 
AnswerRe: File opertions Pin
Eddy Vluggen28-May-14 0:28
professionalEddy Vluggen28-May-14 0:28 
Questionconvert string to system.linq.iqueryable in C# Pin
joji joseph27-May-14 22:08
joji joseph27-May-14 22:08 
AnswerRe: convert string to system.linq.iqueryable in C# Pin
Chris Quinn27-May-14 22:48
Chris Quinn27-May-14 22:48 
AnswerRe: convert string to system.linq.iqueryable in C# Pin
Dave Kreskowiak28-May-14 2:18
mveDave Kreskowiak28-May-14 2:18 
QuestionClone a printer & change default settings using C# Pin
Dazed.dnc27-May-14 19:03
Dazed.dnc27-May-14 19:03 
I've been fighting this battle on my own for months, I could elaborate on the details of everything I've tried and why I ultimately gave up on those other paths... but that would amount to one hell of a long post. I think it might be better just to stick with telling you the path I'm on.

I'm developing an application to print serialized PDFs. Long story short, the most workable solution for getting the PDF to the printer seems to be installing Foxit Reader and using command lines to print using default printer configurations.

Since I don't want to risk mangling the existing printer configuration, I create a clone. If a print setting needs changed, it is written to the clone printer's default settings. When finished printing, I remove the clone and no one is the wiser.

I'm using a WPF PrintDialog to get information about the original printer and allow the user to modify printer configurations. Working from this point, I find the print server that the printer is installed on and grab its print queue.

I'm having hit and miss success at this point. If someone thinks they can offer direction, I can elaborate on what specific failures are occurring, but it seems to be different issues with different printers. Sometimes I am unable to install a clone of the original printer and sometimes the application fails to retrieve information about the original printer.

I was using the general logic outlined here: http://msdn.microsoft.com/en-us/library/aa970846%28v=vs.110%29.aspx
but that didn't work with network printers. My attempts to use PrintServer instead of LocalPrintServer work when the printer is locally installed and are only partially successful otherwise.

I think what I need is to understand the proper way to work with print servers and print ques. How does this change in a network environment? I feel like I'm missing something fundamental about what needs to take place. I don't know, can't really explain what I need to learn if I don't know what to call it in the first place. I'm hoping someone has done this type of thing before and knows what the missing link is.
QuestionRe: Clone a printer & change default settings using C# Pin
Richard MacCutchan27-May-14 21:18
mveRichard MacCutchan27-May-14 21:18 
AnswerRe: Clone a printer & change default settings using C# Pin
Dazed.dnc28-May-14 13:02
Dazed.dnc28-May-14 13:02 
QuestionVariable Datasource Name Pin
eddieangel27-May-14 11:27
eddieangel27-May-14 11:27 
AnswerRe: Variable Datasource Name Pin
Gerry Schmitz27-May-14 12:10
mveGerry Schmitz27-May-14 12:10 
GeneralRe: Variable Datasource Name Pin
eddieangel27-May-14 12:13
eddieangel27-May-14 12:13 
GeneralRe: Variable Datasource Name Pin
Gerry Schmitz27-May-14 14:39
mveGerry Schmitz27-May-14 14:39 
GeneralRe: Variable Datasource Name Pin
eddieangel27-May-14 14:40
eddieangel27-May-14 14:40 
GeneralRe: Variable Datasource Name Pin
Gerry Schmitz27-May-14 14:55
mveGerry Schmitz27-May-14 14:55 
QuestionDayOfWeek/Date problem. Pin
Shady George27-May-14 10:58
Shady George27-May-14 10:58 
AnswerRe: DayOfWeek/Date problem. Pin
Gerry Schmitz27-May-14 11:55
mveGerry Schmitz27-May-14 11:55 
AnswerRe: DayOfWeek/Date problem. Pin
Pete O'Hanlon27-May-14 12:00
mvePete O'Hanlon27-May-14 12:00 
SuggestionRe: DayOfWeek/Date problem. Pin
Richard Deeming28-May-14 1:19
mveRichard Deeming28-May-14 1:19 
AnswerRe: DayOfWeek/Date problem. Pin
Mycroft Holmes27-May-14 12:51
professionalMycroft Holmes27-May-14 12:51 
AnswerRe: DayOfWeek/Date problem. Pin
Shady George29-May-14 10:28
Shady George29-May-14 10:28 
Questioncan we connect SQLite using visual studio Pin
rajeshsuri-IT27-May-14 3:41
rajeshsuri-IT27-May-14 3:41 
AnswerRe: can we connect SQLite using visual studio Pin
Chris Quinn27-May-14 3:57
Chris Quinn27-May-14 3:57 
AnswerRe: can we connect SQLite using visual studio Pin
OriginalGriff27-May-14 5:03
mveOriginalGriff27-May-14 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.