there is a possibility to send Files to a printer which is connected to a virtual LPTx, e.g. "copy filename lpt1". Is it possible to make this WITHOUT a LPTx? A solution in vbScript would be great, but VB is also OK.
I need to be able to send a PostScript file to a printer specified by the user. I am using a print dialog box to get the printer the user selects but now I need a way to send a PostScript file to that printer. I am able to send a PostScript file to a printer right now, but it only sends the file to the printer that was last selected. I am using Ghostview to view the PS file and to print it. This is why the file prints to the last printer selected.
Here is the code I am using to print the file in Ghostview:
If PrintDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim p As New ProcessStartInfo() p.Arguments = PrintDialog.PrinterSettings.PrinterName
Here at work we send straightup text documents to a Genicom, continuous feed, dot-matrix printer and we use the following code in Visual Fox Pro:
RUN COPY *.353+*.360+*.362+*.354+*.825+*.MSL+*.XMS+*.PQR+*.PJS+*.AJS lpt2 I'm having trouble how to accomplish the same thing: simply sending the files to the print queue.
I have a label printer (Argox 1000-x) and i want to print some datas on it. And this printer is connected to my computer via the COM1 port. I can open/write COM1. And when i send some data to printer through COM1, Label Printer's Ready Signal Led will be ON/OFF. But it does not print anything or any label..
Isn't there a way to send an MS Word doc to a printer in VB.net? We generate dozens of Word docs for our clients daily, and would like to create a simple app that will list the files in a selected folder and allow them to highlight as few or as many as they want and send them to their default printer.
My printer is a ZEBRA TLP 3742, and dont have memory for graphics, so i've printed the label to a .prn file where I can see commands, and write them in VB commands
The graphic part of the file is in HEX I think, so how can I send it to the printer ? i've tried by "print.Write" but dont work since it wants a String [code]...
I need to create an exe in VS2010 with VB that does the same thing as a simple command line. The reason is related to debugging. I can type ECHO ~ > \WIN7MMF25$ in a command window on a W2K8R2E server and it will send the ~ character to the shared "printer" on the Win7 PC. Actually, the device is a cash drawer connected to LPT1 that pops open when it sees a ~ character.
Anyway, I created a CMD file with that command, saved it, fired it, and the cash drawer on the Win7 PC opens. However, when I try to call that command file from our ERP application, it doesn't work (it does work if the remote PC is XP, though - just not if it is Win7 or Vista).
Anyway, I was hoping if I created a simple EXE and called THAT from the ERP software, perhaps whatever issue is bugging us will not bug us anymore.
I'm not sure if this is the best forum for this question but it seemed like the most applicable. I am using VBA to create a barcode label application that sends a series of ZPL (Zebra programming language) commands to a USB printer.I need this program to be stand alone in the sense that the Excel 2007 workbook that I am embedding the macro in and the printer driver are the only software that will be required to sucessfully run this program on various computers that have Excel 2007 installed. Additionally I need this program to work directly with the USB port and not a serial/ usb converter. Can someone help me, or direct me to help, to perform this kind of operation? I used to be able to read and write to serial/ parallel ports and haven't worked with USB from a programming perspective.
Possible Duplicate: .NET code to send ZPL to Zebra printers
My company has a Eltron 2543 thermal printer. I'm developing an VB.NET application incorporating FedEx web services to print off shipping labels.I can save off the data file without a problem, but I was wondering how I send this data stream to a shared printer on a network. Do I need to include the Eltron 2543 driver in my solution? I've tried haven't work so I guess I'm looking for an expert who has dealt with printers (particularly thermal) to get me moving in the right direction.
I never used the printingdocument class, and i need some info to know if i can do what i'm thinking.I need to send some text from one textbox directly to one printer (i doesn't have to be the default printer), the user just have to push the button in the form, and the text gets printed. I don't need (want), the print preview and the form with the printers list.
I have a Zebra TLP 2844 Printer connected by USB to my computer. I want to send EPL Commands from Visual Basic .Net to the printer through the USB Port wich the printer is connected to. USB is a Serial port but IT IS NOT COM PORT. So, I don't want the method of connecting the COM port with VB.Net. I want a USB method or any helpfull idea or code.
I searched the net for many days but no solution was found.
Briefly, I want to print to Zebra TLP 2844 from Vb.Net over USB port.
below is my code for copying an image from a form to send it to the printer.it works but it tends to be a little blurry. is there anyway to make it sharper?
Bmp = New Bitmap(Me.ClientSize.Width, Me.ClientSize.Height) Bmp = New Bitmap(800, 500) Dim G As Graphics = Graphics.FromImage(Bmp) G.CopyFromScreen(Me.PointToScreen(Me.ClientRectangle.Location), New Point(0, 0), Me.ClientSize)
I'm currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it's correctly rendered. The next step is to print it, but I need to be able to send it to a specific printer rather than the default printer. How can I accomplish this?
I'm currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it's correctly rendered. The next step is to print it, but I need to be able to send it to a specific printer rather than the default printer.
I want to print an array WebBrowser each time to a different printer without changing the default Printer (not to use the SetDefaultPrinter function) I tried to work with the PrintDocument object(he have the Print function and also i can choose a printer name) but I cant attach the
For my current application development I need direct printing technique,For the purpose I refer Microsoft Support page Titled"How to send raw data to a printer using VB.Net "The code snippnet specified is perfect for my application.Refers link [URL]But I need something more like Setting the Printer font to Condensed.By default my printer use the font 10cpi ,by using this font size I limited to print only 80char on A4 sheet,but I have more than 80 char on line so I prefer Condensed font size.
get a list of printer's (name,port,model) from a computer over the network. I know how to list my own, but it's from querying the Win32_printer object on my machine, I need to be able to do something similar on a remote machine.
1. Detect if my printer is busy, because my code tells the printer to print more pages that it can cope with, so I need to delay the command for 'Print the next page' until the printer has finished printing the previous one.
2. Shift the output to my printer so that it gets printed in it's entirety on the paper, instead of seemingly being anchored to some nebulous point on the A4 page. It starts printing at X = 29mm from the left edge, and Y is 28mm from the top, and stops at X = 22mm from the right edge and Y stops at 22mm from the bottom edge, leaving (aprox) 50mm of X and 50mm of Y unprinted.
3. Get useful information on Bounds, which I'm fairly certain is what I need to control where my printing should start and finish.
I've hunted through this forum, MSDN, 'Help' (a misnomer if ever there was one) the VB Library and one or two other forums, which either baffle me with reams of code or suggest code to try which either just don't work or which doesn't declare all the variables and usually don't suggest what type of variable I need, it's all very frustrating
I am trying to get list of print jobs and I want property name that returns file location of document being print. I have search through all print class and management class but could not find property that returns current document is being print.
I am trying to develop a program that will open, print and then close the selected files from the listview.The file could be of any type, but I am particularly interested in autocad drawing files - .dwg format. The printing needs to be done at the printer. There is a multibox which allows the user to select the printer .
Currently, I can open the files and select the printer but I am really getting stuck at printing.
My intesion is to Print PDF File to Remote Printer from VB.net with out showing any window, i used Following code, But i but one Adobe Reader (Blank) is Showing ..
For i = 0 To FileList.Count - 1 Dim startInfo As New ProcessStartInfo startInfo.FileName = FileList(i).ToString
[Code]....
the problem is How to set printer and Remove Blank Adobe reader window