Click here to Skip to main content
15,925,309 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSetup For Vb.net Project Pin
K03068-Aug-07 18:51
K03068-Aug-07 18:51 
AnswerRe: Setup For Vb.net Project Pin
Christian Graus8-Aug-07 19:08
protectorChristian Graus8-Aug-07 19:08 
QuestionDave, can u pls help me with this..?? Pin
Xandip8-Aug-07 17:37
Xandip8-Aug-07 17:37 
AnswerRe: Dave, can u pls help me with this..?? Pin
Nilesh Hapse8-Aug-07 19:31
Nilesh Hapse8-Aug-07 19:31 
Questionmodule - what is this Pin
Tom Wright8-Aug-07 15:37
Tom Wright8-Aug-07 15:37 
AnswerRe: module - what is this Pin
Luc Pattyn8-Aug-07 15:56
sitebuilderLuc Pattyn8-Aug-07 15:56 
GeneralRe: module - what is this Pin
Tom Wright10-Aug-07 2:45
Tom Wright10-Aug-07 2:45 
GeneralRe: module - what is this Pin
Luc Pattyn10-Aug-07 3:07
sitebuilderLuc Pattyn10-Aug-07 3:07 
QuestionDataGridView Column accept Numbers Only ? Pin
kindman_nb8-Aug-07 15:32
kindman_nb8-Aug-07 15:32 
AnswerRe: DataGridView Column accept Numbers Only ? Pin
Trupti Mehta8-Aug-07 21:42
Trupti Mehta8-Aug-07 21:42 
GeneralRe: DataGridView Column accept Numbers Only ? Pin
kindman_nb9-Aug-07 4:46
kindman_nb9-Aug-07 4:46 
QuestionHow to handle semi global variables Pin
Blizzardice8-Aug-07 10:20
Blizzardice8-Aug-07 10:20 
AnswerRe: How to handle semi global variables Pin
Christian Graus8-Aug-07 17:40
protectorChristian Graus8-Aug-07 17:40 
GeneralRe: How to handle semi global variables Pin
Blizzardice9-Aug-07 4:16
Blizzardice9-Aug-07 4:16 
QuestionComparing directories using VB.NET [modified] Pin
Ravi Mahavrathayajula8-Aug-07 9:12
Ravi Mahavrathayajula8-Aug-07 9:12 
AnswerRe: Comparing directories using VB.NET Pin
Ravi Mahavrathayajula9-Aug-07 2:30
Ravi Mahavrathayajula9-Aug-07 2:30 
GeneralRe: Comparing directories using VB.NET Pin
MartyK20079-Aug-07 2:46
MartyK20079-Aug-07 2:46 
GeneralRe: Comparing directories using VB.NET Pin
Ravi Mahavrathayajula14-Aug-07 3:54
Ravi Mahavrathayajula14-Aug-07 3:54 
GeneralRe: Comparing directories using VB.NET Pin
MartyK200714-Aug-07 4:10
MartyK200714-Aug-07 4:10 
QuestionKeyDown ... Enter , System do Beep Pin
kindman_nb8-Aug-07 8:30
kindman_nb8-Aug-07 8:30 
AnswerRe: KeyDown ... Enter , System do Beep Pin
The ANZAC8-Aug-07 13:03
The ANZAC8-Aug-07 13:03 
GeneralRe: KeyDown ... Enter , System do Beep Pin
kindman_nb8-Aug-07 14:48
kindman_nb8-Aug-07 14:48 
QuestionPrint of pdf file to network printer fails Pin
Nick De Decker8-Aug-07 8:23
Nick De Decker8-Aug-07 8:23 
Hello all,

Heard some great stuff about the code project so I decided to join the community and hope to be able to help others in the future as well.
Not yet there though since i'm fairly new to vb.net

Anyway: I need to print PDF files that are on disk to a network printer.
I searched for some printing code on the net and found several similar approaches.
However printing only seems to work to local printers, not network printers.
Even on local printers it sometimes fails.

I used the following code:

Dim PD As New System.Drawing.Printing.PrintDocument
Dim DefPrint As String = PD.DefaultPageSettings.PrinterSettings.PrinterName PD.DefaultPageSettings.PrinterSettings.PrinterName = .PrinterNaam
Dim NP As New Process()
NP.StartInfo.FileName = "c:\test.pdf"
NP.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
NP.StartInfo.Verb = "Print"
NP.Start()
NP.WaitForExit(9000)
If Not NP.HasExited Then
NP.Kill()
End If
PD.DefaultPageSettings.PrinterSettings.PrinterName = DefPrint


any way to improve this piece of code ?
it launches the print command to acrobat, but maybe there is a better trick to do the printing.
How comes this doesn't work for network printers ?

Thanks in advance,
Nick
QuestionTabindex Problems Pin
programmervb.netc++8-Aug-07 7:16
programmervb.netc++8-Aug-07 7:16 
AnswerRe: Tabindex Problems Pin
Luc Pattyn8-Aug-07 7:39
sitebuilderLuc Pattyn8-Aug-07 7:39 

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.