-
Mar 25th, 2025, 11:53 AM
#1
Thread Starter
New Member
Problem with Open command on printer port
I am using the Open command perfectly to open the virtual port of a printer (USB) as follows:
Open "\\vmxp\generic" For Output As #1
Now I intend to ask the user for the path of the virtual printer, but I receive the message "Path not found" when I try to use it as a parameter in the command line as follows:
Open "'\" & txtportname.Text & "'" For Output As #1
The syntax with parameters should certainly not be like this, so I would like to know what is the correct way to use the Open command?
Thank you all for your support and I look forward to hearing from you.
-
Mar 25th, 2025, 12:02 PM
#2
Re: Problem with Open command on printer port
Why do you have “‘\” at the beginning of the command?
-
Mar 25th, 2025, 02:20 PM
#3
Thread Starter
New Member
Re: Problem with Open command on printer port
 Originally Posted by Arnoutdv
Why do you have “‘\” at the beginning of the command?
I am sorry!
I'm typing the following syntax in the code below, but with error!
txtnomeporta.Text = "\\vmxp\generic"
Open "''" & txtnomeporta.Text & "'" For Output As #1
-
Mar 25th, 2025, 04:04 PM
#4
Re: Problem with Open command on printer port
Why enclose the text between “ in the Open command??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|