I'm using the CommonDialog.ShowPrinter method in an application, and strangely, the printer dialog doesn't always appear. Sometimes, though the code runs, I never see the printer dialog...?
:confused:
Any tips?
Printable View
I'm using the CommonDialog.ShowPrinter method in an application, and strangely, the printer dialog doesn't always appear. Sometimes, though the code runs, I never see the printer dialog...?
:confused:
Any tips?
what is ur code?
CommonDialog1.ShowPrinter
:confused:
It's under a menu item, and that's all there is...
well the code works so something strange is going on... maybe it shows but other code call attention to ur form and makes the dialog kinda invisible?
I thought that, but the dialog is bigger than the form, and it doesn't appear behind it - I checked...
and ur sure the code is executing?? use this to test whats going on
VB Code:
MsgBox "Start" CommonDialog1.ShowPrinter MsgBox "Finish"
Everytime I step through it, no probs.
I often have this problem with VB. When the code is running, various things just don't happen. But when I put in debug statements, or step through, it works....
:confused:
Chuck in some doevents maybe?
Sounds screwy but try this. Cut your code form your project, sub by sub and paste in a texfile. Save your project. Post your code back from the text file, but rearrange the sub order. I had this similiar problem awhile ago, and when debugging the code seemed to jump all over, and bypass certain areas of code. After I did this, it seems to fix it (some possible bug)?
Will give this a try.
Cheers
:)
No problem ;)