Help with syntax in VB.Net

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
WFM
Posts: 21
Joined: Thu Jun 02 2005

Help with syntax in VB.Net

Post by WFM »

I need a little help with the syntax of installing a printer in VB.net I'm using the following code but I know I have the quotes (because it does not work) in the wrong place. Any help would be apprecieated.

Dim args As System.Text.StringBuilder = New System.Text.StringBuilder
args.Append("'-s' ")
args.Append("'My Converter' ")
args.Append("-n ")
args.Append("'My Company' ")
args.Append("-c ")
args.Append("'07EF.........'")
Process.Start("C:\Program Files\Amyuni PDF Converter\Install.exe", args.ToString)
WFM
Posts: 21
Joined: Thu Jun 02 2005

got it

Post by WFM »

Dim args As System.Text.StringBuilder = New System.Text.StringBuilder
args.Append("-s ")
args.Append("""My Converter"" ")
args.Append("-n ")
args.Append("""My Company"" ")
args.Append("-c ")
args.Append("""07EF.....""")
Dim arg As String = args.ToString
Post Reply