Click here to Skip to main content
16,014,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Webcontrol inside a webcontrol Pin
ezazazel5-Mar-08 6:28
ezazazel5-Mar-08 6:28 
GeneralDataGridView & DataSet - Updating the DataBase Pin
half-life5-Mar-08 3:23
half-life5-Mar-08 3:23 
QuestionP/Invoking void * - is this the right way? Pin
Luca Leonardo Scorcia5-Mar-08 2:54
professionalLuca Leonardo Scorcia5-Mar-08 2:54 
AnswerRe: P/Invoking void * - is this the right way? Pin
led mike5-Mar-08 4:56
led mike5-Mar-08 4:56 
AnswerRe: P/Invoking void * - is this the right way? Pin
Luc Pattyn5-Mar-08 5:43
sitebuilderLuc Pattyn5-Mar-08 5:43 
GeneralRe: P/Invoking void * - is this the right way? Pin
Luca Leonardo Scorcia5-Mar-08 7:32
professionalLuca Leonardo Scorcia5-Mar-08 7:32 
AnswerRe: P/Invoking void * - is this the right way? Pin
Ernest Laurentin5-Mar-08 5:59
Ernest Laurentin5-Mar-08 5:59 
GeneralInvalidPrinterException when printer is installed and working - only with HP LaserJet 1010 series Pin
Dragan Matic5-Mar-08 2:22
Dragan Matic5-Mar-08 2:22 
I am having a problem with with printing from .Net 2.0 on HP LaserJet 1010 printers.

Occasionally (sometimes once a month, sometimes once a day) printer gets 'blocked' in such a manner that it can not print anything from .net 2.0.

When printDocument.print method is invoked, it throws InvalidPrinterException, even if printer has just been selected from printDialog. Printer is online and working (everything else can be printed on it), only printing that goes through .net is blocked. The problem seems that printer name is not recognised even if it is returned by PrintDialog, and printDocument.PrinterSettings.IsValid is false.

Even a simple example like this doesn't work:

printDialog1.Document = printDocument1;
printDialog1.ShowDialog();

// after printer gets blocked, isValid is allways 'false'
if (printDocument1.PrinterSettings.IsValid)
printDocument1.Print();
else
MessageBox.Show("Error!");


The way to 'unblock' the printer is to simply change its name (printers and faxes / right click on printer / rename) or reinstall the printer. After that printer gets unblocked and works for some time until it gets blocked again (while it is 'blocked', it can still print from other programs, only .net programs are blocked). This only happens with HP LaserJet 1010 and 1018 printers. All the other printers work perfectly. On some computers these printers get occasionally blocked, while on some computers printers work perfectly. Printers are installed with newest drivers, .net is 2.0 with service pack and computer operator works as an administrator for a local machine.

Any idea why this blocking is occuring?

Tnx in advance

Dragan Matic
GeneralStarting point to Crystal Reports Pin
Harvey Saayman5-Mar-08 2:16
Harvey Saayman5-Mar-08 2:16 
General[Message Deleted] Pin
Krishnaraj Barvathaya B5-Mar-08 0:52
Krishnaraj Barvathaya B5-Mar-08 0:52 
GeneralRe: How to copy files in a folder tree into a single folder Pin
pmarfleet5-Mar-08 1:26
pmarfleet5-Mar-08 1:26 
GeneralRe: How to copy files in a folder tree into a single folder Pin
Krishnaraj Barvathaya B5-Mar-08 5:48
Krishnaraj Barvathaya B5-Mar-08 5:48 
GeneralRe: How to copy files in a folder tree into a single folder Pin
Anthony Mushrow5-Mar-08 6:03
professionalAnthony Mushrow5-Mar-08 6:03 
GeneralRe: How to copy files in a folder tree into a single folder Pin
pmarfleet5-Mar-08 8:32
pmarfleet5-Mar-08 8:32 
GeneralRe: How to copy files in a folder tree into a single folder Pin
Pete O'Hanlon5-Mar-08 1:32
mvePete O'Hanlon5-Mar-08 1:32 
GeneralUnable to access SQL Reports in C#.Net windows application Pin
Vinay Babu4-Mar-08 23:20
Vinay Babu4-Mar-08 23:20 
GeneralRe: Unable to access SQL Reports in C#.Net windows application Pin
pmarfleet5-Mar-08 1:27
pmarfleet5-Mar-08 1:27 
GeneralRe: Unable to access SQL Reports in C#.Net windows application Pin
Paul Conrad5-Mar-08 4:32
professionalPaul Conrad5-Mar-08 4:32 
QuestionHow do I write to another window through a C# form [modified] Pin
Deresen4-Mar-08 23:07
Deresen4-Mar-08 23:07 
AnswerRe: How do I write to another window through a C# form Pin
V.4-Mar-08 23:48
professionalV.4-Mar-08 23:48 
GeneralBackgroundworker in .NET1.1 [modified] Pin
SPanicker*4-Mar-08 22:58
SPanicker*4-Mar-08 22:58 
GeneralRe: Backgroundworker in .NET1.1 Pin
N a v a n e e t h4-Mar-08 23:38
N a v a n e e t h4-Mar-08 23:38 
GeneralRe: Backgroundworker in .NET1.1 Pin
SPanicker*6-Mar-08 2:07
SPanicker*6-Mar-08 2:07 
Generalstandard controls graphical properties Pin
cignox14-Mar-08 22:57
cignox14-Mar-08 22:57 
GeneralAdding Contact in ACtive directory and reflecting it in Exchange server. Pin
amitcoder834-Mar-08 22:45
amitcoder834-Mar-08 22:45 

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.