Click here to Skip to main content
15,888,124 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problem with custom control stealing focus: Resolved 'sort of' Pin
Gerry Schmitz31-Mar-18 7:10
mveGerry Schmitz31-Mar-18 7:10 
QuestionAddition and Subtraction Operation in SQL update query Pin
Member 1375497530-Mar-18 4:50
Member 1375497530-Mar-18 4:50 
QuestionRe: Addition and Subtraction Operation in SQL update query Pin
Eddy Vluggen30-Mar-18 5:23
professionalEddy Vluggen30-Mar-18 5:23 
AnswerRe: Addition and Subtraction Operation in SQL update query Pin
Richard Deeming3-Apr-18 8:30
mveRichard Deeming3-Apr-18 8:30 
Questionproblem with opening a text file in my app with double click Pin
Sh3R3iF29-Mar-18 9:22
Sh3R3iF29-Mar-18 9:22 
QuestionRe: problem with opening a text file in my app with double click Pin
Richard MacCutchan29-Mar-18 22:19
mveRichard MacCutchan29-Mar-18 22:19 
QuestionProblem running a command when the path has spaces in its name. Pin
David Mujica27-Mar-18 9:37
David Mujica27-Mar-18 9:37 
AnswerRe: Problem running a command when the path has spaces in its name. Pin
Dave Kreskowiak27-Mar-18 10:30
mveDave Kreskowiak27-Mar-18 10:30 
You have to separate the command line options from the command you're trying to execute.

For your "filename", you've got:
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe" /N /T

That doesn't work.
Your filename and arguments must be specified separately:
VB.NET
Dim command As String = """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe"""
Dim arguments As String = String.Format("/n /t ""{0}"" ""{1}"" ""{2}"" ""{3}""", pdfFilePath, printerName, driverName, portName)

Dim process As New Process
Dim pi As New ProcessStartInfo

pi.Filename = command
pi.Arguments = arguments
process.StartInfo = pi
process.Start


Yes, the double quotes are there for a reason. It's shorter to type "" than it is to type Chr$(34) &.

GeneralRe: Problem running a command when the path has spaces in its name. Pin
David Mujica28-Mar-18 9:35
David Mujica28-Mar-18 9:35 
QuestionConversion Blues Pin
Member 1274920627-Mar-18 5:00
Member 1274920627-Mar-18 5:00 
AnswerRe: Conversion Blues Pin
Richard Deeming27-Mar-18 5:20
mveRichard Deeming27-Mar-18 5:20 
AnswerRe: Conversion Blues Pin
Richard MacCutchan27-Mar-18 5:21
mveRichard MacCutchan27-Mar-18 5:21 
QuestionHow to add custom control to designer like tooltip Pin
mo149227-Mar-18 2:30
mo149227-Mar-18 2:30 
AnswerRe: How to add custom control to designer like tooltip Pin
Dave Kreskowiak27-Mar-18 5:08
mveDave Kreskowiak27-Mar-18 5:08 
GeneralRe: How to add custom control to designer like tooltip Pin
mo149227-Mar-18 5:15
mo149227-Mar-18 5:15 
QuestionHow do I link two forms together in VB 2010? Pin
Lost25-Mar-18 3:36
Lost25-Mar-18 3:36 
AnswerRe: How do I link two forms together in VB 2010? Pin
Eddy Vluggen25-Mar-18 19:18
professionalEddy Vluggen25-Mar-18 19:18 
Questionentity framework How to remove some items from local entities Pin
desanti23-Mar-18 8:59
desanti23-Mar-18 8:59 
QuestionRe: entity framework How to remove some items from local entities Pin
Eddy Vluggen24-Mar-18 13:39
professionalEddy Vluggen24-Mar-18 13:39 
QuestionCould someone help me with a Database question? Pin
D. Doulas22-Mar-18 12:01
D. Doulas22-Mar-18 12:01 
AnswerRe: Could someone help me with a Database question? Pin
Richard MacCutchan22-Mar-18 23:55
mveRichard MacCutchan22-Mar-18 23:55 
GeneralRe: Could someone help me with a Database question? Pin
D. Doulas24-Mar-18 8:23
D. Doulas24-Mar-18 8:23 
GeneralRe: Could someone help me with a Database question? Pin
Richard MacCutchan24-Mar-18 21:11
mveRichard MacCutchan24-Mar-18 21:11 
GeneralRe: Could someone help me with a Database question? Pin
D. Doulas1-Apr-18 10:20
D. Doulas1-Apr-18 10:20 
GeneralRe: Could someone help me with a Database question? Pin
Mycroft Holmes1-Apr-18 13:42
professionalMycroft Holmes1-Apr-18 13:42 

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.