Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
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 
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 
If you know a way to create a printable document object out of a PDF, I'm open to new ideas. My understanding was that this required the printer to have native support for printing PDFs. I'm not certain that this would always be true or I would just do it this way and be done with it. Alternatively, I could use a third party library/tool like ghost script, but this seemed to give me about an equivalent level of control relative to using process commands.

Lots of other options available if you shell out $400+. I tried a demo of PDFRender4NET. At first, it seemed to support the printersettings class, which theoretically gave me a way to inject a properly configured devmode structure. Later, their support staff told me PDFRender4NET can't pull printer configurations from the print settings object. It was never intended to configure a printer in that manner.

Printing using a process to issue command line instructions is the closest I've come to something that works. At least, this is the best solution I've been able to figure out. Some other examples involve using pinvoke signatures, but native api calls are too much of a black box for me to really understand how to use them.

Unfortunately, I need to set configurations that are only accessible through the devmode structure. I can't set them via the command line, which means it prints using the default configuration. Changing the default settings seemed like an easy work around, but if the application crashes or we have a power outage mid-print, etc, it would require manually setting the defaults back to normal. Creating a temporary clone is just a precaution against such things and avoids the clutter of having duplicate print ques for each printer pre-installed.
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 
AnswerRe: can we connect SQLite using visual studio Pin
Shady George27-May-14 11:00
Shady George27-May-14 11:00 
QuestionHow we can shared any folder on all user of LAN using c# code. Pin
osmo3327-May-14 2:13
osmo3327-May-14 2:13 

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.