General information
Title:
Detecting Windows Default Printer
Is there any way of Detecting Windows Default Printer?
(BTW - I'm using NT)
I have an app that sometimes prints wrong...but I noticed that if I toggle my default printer to something else, and then back to the original, then it prints correctly.
What I'm doing is printing a report with multiple graphs. The graphs are produced using Graphics Server. To get things the way we want them we play with the FRX. Because of this, we have a "template" of the report, which we copy and modify. Part of the modification is to insert a record for each graph. Each report is uniquely re-named during the copy of the template. Each graph is stored as a BMP and is also uniquely named.
So if I do two reports (A and B), I'll have at least three graphs each (G1a, G2a, G3a, and G1b, G2b, and G3b)... Each Graph is the result of an independant call to Graphics Server...
I should get the following:
Report A with Graphs G1a, G2a, G3a
Report B with Graphs G1b, G2b, G3b
Sometimes, if I don't toggle the default printer I'll get
Report A with Graphs G1a, G2a, G3a
Report B with Graphs G1a, G2a, G3a
But if I do toggle the default printer I'll get
Report A with Graphs G1a, G2a, G3a
Report B with Graphs G1b, G2b, G3b
....Like I'm supposed to!
We've checked everything "we" can think of and toggling the printer is the only thing that has worked so far...
...No, we don't know why it works
...No, we don't know why it prints wrong either.... :(
(I believe the FRX has the right entries...I'll double check)
So that's why I'm asking,
Is there any way of Detecting Windows Default Printer?
BTW - I'm told the info is in the NT Registry...how can I get there with 2.6? Any working solution is GREAT!!!! If you have an answer that doesn't involve the registry Please tell me! Don't hold back!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only