Sending PCL/PJL Commands To The Printer Using Vb


Hi,Can anybody Know how to send PCL/PJL Commands to the printer.i have to use API Calls to send PCL/PJL commands.but i don't know How?PLZ help me,Thanks,Anitha

View Answers
Very similar questions


Printing PCL File To Network Printer www.xtremevbtalk.com

My customer has a file (PCL format) that was created by an HP LaserJet 4si driver. I have a need to send this file to various network printers - most of which are not HP LaserJet 4si printers. I thought that PCL was kind of a "universal" printer control language and would work on most printers, regardless of make/model of driver. I'm also concerned that we're kind of "locked in" to the HP LaserJet 4si since it is mentioned in the file's header (see brief blurb below):%-12345X@PJL COMMENT HP LaserJet 4Si@PJL SET PAGEPROTECT=OFF@PJL SET PAGEPROTECT=AUTO@PJL SET RET=ON@PJL SET RESOLUTION=600@PJL ENTER LANGUAGE=PCLIs this possible? Any suggestions?

Printing Datareport www.vbcity.com

Hi friends,I have a program in vb 6.0. Its a small printing program.While printing the report, sometimes the printer starts to print printer comments...% - 12345X@PJL JOB             @PJL COMMENT "hp LaserJet 1300 PCL 6 (; Microsoft WindThen i have to to shut down the printer for 10-15 minutes and it will be OK after that.I am using the codedatareport1.hidedatareport1.printreport falseI dnt knw the problem is with the program or the printer driverPlease help me

Send PJL Command From VBA www.xtremevbtalk.com

I have a printer that accepts commands via PJL, I have written a little software that will do everything i want it to do EXCEPT STAPLE. I have the doucmentation on the command on how to make it staple BUT i don't know how to send the PJL command to the printer. Any ideas? the below is the command in my manual.<ESC>%-12345X@PJL@PJL JOB@PJL SET QTY = 1@PJL SET OUTBIN = FINISHERBOOKLET@PJL SET JOBOFFSET = OFF@PJL SET STAPLE = LEFTTOP@PJL SET PUNCH = TOPPORT@PJL SET IMAGEDIRECTION = NORMAL@PJL SET TRACKID = "AUocrAAEZIovYG"@PJL SET TIME = "17:17"@PJL SET DATE = "2002/03/04"@PJL SET JOBNAME = "MICROSOFT WORD - J9.DOC"@PJL SET USERID = "?"@PJL SET ENTER LANGUAGE = RPDL::<ESC>%-12345X@PJL@PJL EOJ@PJL RESET

VS 2008 Printer Spooler - Retrieving Page Count And Serial Number? www.vbforums.com

I'm helping the IT department at my school do an audit of all our printers (there are hundreds). They are all networked, so I wrote a vb.net program that sends PJL (printer job language) commands over port 9100 to all the printers to retrieve the page count. @PJL INFO PAGECOUNT actually gets the page count for all the printers, but for color printers we also need to know the color / mono page counts (number of color pages printed, number of black and white pages printed).... the number being returned by the PAGECOUNT command right now seems to be the total pagecount on color printers, so if I can find a command that will give me either the mono or color page count, I'll have the other number. I also need the serial number of every machine (the spreadsheet I'm working off of is unreliable). @PJL INQUIRE SERIALNUMBER actually returns the serial number for about half of the HP printers, and some random non-HP ones, but I can't figure out a way to get the serial number for the other 50%. I sent emails to some of the people who wrote the articles about PJL I was following, and they advised I try using printer spooler functions (from my brief google search it would appear these are windows API's that facilitate communication with a printer). Does anyone have any experience with working with the Printer Spooler functions or know a PJL command I might have overlooked that will help me get any of the info I'm looking for?here is my program right now. Ignore GetSerialNumber2 and GetSerialNumber3... they don't work (well actually GetSerialNumber2 works on 5 printers... but yea). GetSerialNumber() is the one that gets the serial number successfully for about half of the printers. (edit: I took out those functions in the version I posted, along with some other stuff that wasn't needed for this, to fit the post size limit)

******PCL Or HPGL/2 Edit...set The Number Of Copies To Print www.vbcity.com

Hi VBCity...You too Isaiah!Over the last 2 years, I have given lots of tips and help (some not so great) but now the tables are turned, I need help.If you have any pointers on editing PJL, PCL, or HPGL/2, then let's talk. Actually, I am wanting to edit the number of copies the printer/plotter outputs by modifying the PJL, PCL, or HPGL/2 code. So, if anybody out there has a clue about this, I am ALL ears. I have tried everything but it seems I'm not even getting my foot in the door. Each thing I try flops. Normally I can reproduce any behavior then automate it, but this is beyond me. Maybe it's pie in the sky to think it could be done!?I understand that each PCL or HPGL/2 file is written specifically for a given printer/plotter by the printer driver, yet I want to edit the number of copies on the fly as I pass the data on to the spool32 API.I know the HPGL2 command RP should do it and that I would need to enter HPGL2 mode if the file is a PCL file. Also, where would those commands go? What's the proper format? Do certain HPGL2 commands have to come first? Parsing HPGL2/PCL code is not difficult, but I don't know where this command should be placed.A sample plot file is attached here for your perusal, in case you want to look at it in Notepad or some other editor PFE32, etc.Thanks to all you great programmers out there in advance.VBsixerEdited by - VBsixer on 5/26/2004 11:48:02 AM

How To Print "escape Sequences" To The Printer www.xtremevbtalk.com

I try to print different paper in one run. With changing of paper i ask "if the printer is ready for the new paper". Then i want to change my profileHow i can change a profile of the printer?I try with this: '' esc%-12345X@PJL DEFAULT PROFILE = 5 '' esc%-12345X Open Printer.DeviceName For Output As #1 Print #1, (Chr$(27) + "%-12345X@PJL DEFAULT PROFILE = 7") Print #1, ("@PJL RESET" + vbCrLf) Print #1, (Chr$(27) + "%-12345X") Close #1doesn't workchange profile on printer doesn't workchange the printersetting by hand work???How i can solve this problem??????

Common Dialog Print Function www.vbcity.com

I've formated and writen a PCL print file from inside my program to the harddrive. Now i want to send it to a PCL printer on the network. (its done over windows network) \servernameprinter001 etc.Can I in someway retrive the path to the printer using the Common dialog printer object? It would be so sweet if the user could select the Printer from the standard windows printer selector./Anders

Escape www.codeguru.com

I found in the Technet OF MS an article "HOWTO: Send Raw Data to a Printer Using the Win32 API from VB [Q154078]"I tried this and it works fine.How can I send Escape sequences to a printer through this method. If I include f.e. vbkeyescape & "&l1O" (print landscape in PCL) in the string I send to the printer, this is printed as a string and not executed.Thanks for your help

How To Send Native Printer Language Codes To The Printer Driver? www.vbforums.com

how to send native printer language codes to the printer driver?here some native printer language codes for testingEpson FX Printer Codes:-Printer Operation:Decimal ASCII Description 7 BEL Beeper17 DC1 Select printer19 DC3 Deselect printer 14 SO Select double width for one line15 SI Select condensed mode18 DC2 Cancel condensed modehow to pass these PCL codes to printer through VB programming for changing printer settings dynamically. try to solve this problem.KS Raju.

Send PCL Command With Printjob www.vbcity.com

Hi there..I have a vb application that can sucessfully print to the specified default printer (using printer object).I need to be able to staple the document (hard copy) at the end of the printing process.In order to do that, I guess I need to be able to send a PCL char to the printer... in order to make it stapling the document. Does anyone knows how to achieve that?Thanks a lot.Otavio

Escape Sequences www.codeguru.com

I have a simm loaded with forms that i insert in the memory banksof an hp 4 plus printer, To print this forms from ms-dos and windows 3.x a send escape sequences (hp pcl commands)using the chr(27)(escape character) from a program that i made in visual basic.My problem is that when i try to do the same operation from windows 95 using visual basic 5.0 i can't. same people tell me that windows 95 don't recognize the chr(27), i try the passtrogh but don't work.If you can help, please send me and email

How To Share Printers With Macs ? www.sevenforums.com

In both Vista and XP, I could explicitly setp the printer share name on the network and also what printer driver to use (PCL, PostScript). My PC has two printers, an Epson inkjet which doesn't support network printing from the Mac because it only supports PCL, and a Brother HL5240 laser printer. Under XP/Vista I installed the BR-Script drivers on both the Windows and Mac boxes, shared the printer as //Skip-PC/HL5240, and have no problems printing. Does anyone have a clue how I might do this in Windows 7?

VB Printer Command www.codeguru.com

Hi everybodyIts been a while since I have used VB and would just like to know how to "send a direct command to a printer"Thanx

Convert To PCL Format www.xtremevbtalk.com

Hi folks,I need to know how to convert a .doc to PCL format. Also just using some other tool like the printer object can be used maybe to save into a pcl format ?or somthing else, I may be able to construct the document from scratch so every other way is also good information but prefebly the .doc to pcl conversion.greets ghoti

Sending Intermec Printer Commands Through Ethernet www.vbforums.com

Im trying to send printer commands to a Intermec Label Printer through the ethernet, I use to do this through the Serial port and know I'm working with printers that are on network, I know how to print to a printer using the Printer Object but I need to send IPL commands straight to the printer to get status and print labels. I'm trying to do this in VB 6.0. Any help would be great.. Thanks

Download Printer Driver For Hp Laser Jet 1320 PCL 6 For Windows 7 64 Bits www.tomshardware.com

we have need for windows 7 Drivers of Hp Laser Jet PCL 6 Printer.

Printing Escape Sequences www.xtremevbtalk.com

I have a file that contains HP LaserJet PCL commands. When I send the contents of the file to the HP LaserJet via a Printer.Print Data$; command the Escapes are being filtered out. What prints are the codes with a blank character where the ESC should be ... Anyone know why?

Sending ESC Commands To Printer www.xtremevbtalk.com

Hi all,I am trying to send Special ESC Commands to my printer with standard VB printer object.If I connect my printer to LPT1 port and use smtg like below, it is working. Code:Open "lpt1" For Output As #1Print #1, Chr$(27); Chr$(52);Print #1, "This one is working just fine"Close #1But the thing is I am using a parallel bluetooth port for my printer. This printer is shared in network.How can I use VB Printer object for sending ESC characters like I did in above examples?Any Ideas?

Send PCL Code To Printer www.vbforums.com

Hi all,Does anybody know how to send PCL code to control printer from VB ? I use printer object.help please...

Insert Pcl Escape Sequences Into PCL Built From Multiple PDF Files? stackoverflow.com

What tools/methods are available to build pcl stream from PDFs.We have a bunch of generated PDF files that get tied up into one big pdf.I need to generate a print job to print this with the ability to insert pcl escape sequences (to control paper feed and output bin stacking) per page. As of now we use the VB.Net printing classes, convert the PDF into a rasterized image using a third party tool to print. This does not allow us to insert PCL sequences into the print job. So, basically, we need to process a bunch of PDFs, append them to the pcl and insert PCL commands as we go along. Is there a way to achieve this. Our application is written in VB.Net.

Dot Matrix Printer - How To Get 'Emulation Mode'/'Printer Device Mode' www.xtremevbtalk.com

I'm making a 'DMP TextMode Printing Software'. This app has a WYSIWYG rtf editor and can print the rtf file to a DMP printer keeping the formatting (those are supported by the printer) in 'pure' TextMode (or DOS Mode Printing).This app doesn't uses VB printer object. It can directly print to the spooler or can directly print to LPT port. Currently it supports Epson, HP, IBM and compatible printers.Currently user selects the type of Printer Emulation he wants to use and the app sends data in that PCL (Printer Control Language) format.I want to detect it autometically. But facing some problems. For example :My printer is an old TVSE MSP-55, which uses CITIZEN bios and supports Epson, IBM and CITIZEN-Custom modes. This modes can be selected by DIP switches or by PCL. I've found no way to detect current emulation mode, from Windows.Most DMP printers are not highly driver dependent. That means, you can use most Epson-compatible drivers with other Epson-compatible printers without much difficulty. Most of them will respect Epson PCL1. (And similar for other-mode printers.) And there is Windows Generic printers. So, If I want to know which Emulations current printer supports, detecting driver is not a very good idea.Does anyone know,1. How to detect if the printer is a DMP or not ?2. If the printer is a DMP then how to detect which PCL/emulation it supports ?3. How to detect current emulation mode ?Edit: If possible then directly from the printer hardware. Not from the driver.I'll be really grateful for any kind of help. Edit: Thanks TeraBlight. Forgot about that IE bullet bug.

How To Include In An Printing Text Bold Or Italic? www.vbforums.com

Hi,I want to print with ...Printer.Print "This is a Text and this part have to be bold and this part italic" ... and the Result should be ...This is a Text and this part have to be bold and this part italicI can't separate the Line. It must come in one command to the Printer.Print I use HP-Printers with PCL-Commandset.Any ideas?Nice greetingsFrank

How To Send EPL Commands To USB TLP2824 www.dreamincode.net

I have a Zebra TLP2824 Printer and I want to know how to send the EPL commands from a VB.Net Windows Form application.

Printing To A Line Printer www.vbforums.com

using "Printer." commands to print to a line printer (dot-matrix) Epson 1180 that is on the network. A simple test (that ends with the Printer.Endoc command ) works fine when I send to a HP laserJet printer, but when to the line printer, A huge spools file is created adinfinitum while locking up the VB app. When I terminate the app, the spool file is released and I get nothing but a page advance or two. Any ideas? ThanksTom

PCL Command Printing For Dos Mode Reports. visualbasic.ittoolbox.com

<html><div style='background-color:'>Hi,<BR>Can anybody send the code or method to solve this problem.<BR>I have Cobol, Sculptor Both are Dos based programs. I want to<BR>print the reports of this with PCL command of HP printer.<BR>I would like the report be in duplex as well as single side mode.<BR>Expecting your co-operation.<BR>Regards<BR>Thomas K. Mathew</div><br clear=all><hr>Post Classifieds on MSN classifieds. <a href="http://g.msn.com/8HMBENIN/2734??PS=">Buy and Sell on MSN Classifieds.</a> </html>

Printing To An USB Printer www.codeguru.com

Hi Friends!Thanks in advance.I have written a ReportWriter to have my reports in plain text/ascii files. I print them from within the VB app using cmd.exe or command.com and sending the file to the printer like:type {filename] > prnortype {filename] > \Mac6EpsonIt works fine as far as I have my printer on the LPT. But I failed once when the local printer was on USB port and the app sent the command as "type {filename} > prn". The printing fails here. Can I have some advice for this?Thanks in advance,Regards,Kangkan

Trouble Setting ActivePrinter In .PrintOut Command www.vbforums.com

I have not been able to find the proper syntax for defining the active printer in the .PrintOut command.I have an application that will be on two PCs that have a reciept printer as their default. I need this sub to print to a laser printer that is on the desk behind them.I tried to implement the ActivePrinter property of the PrintOut command but it seems to ignore it.Code:Sub Print_Charge()Sheets("Charge").PrintOut From:=1, To:=1, Copies:=1, Collate:=True, ActivePrinter:="HP LaserJet 1200 Series PCL 6 on MEDLIB_PRINTER" For x = 0 To AddChargID On Error Resume Next Sheets("Charg." & Format(Date, "mmdd.") & x).PrintOut From:=1, To:=1, Copies:=1, Collate:=True, ActivePrinter:="HP LaserJet 1200 Series PCL 6 on MEDLIB_PRINTER" Next xEnd Sub

Printer Setting www.codeguru.com

Assume we set the printer property as below: - Printer.ScaleMode = vbTwips - Printer.PaperSize = vbPRPSA4 - Printer.Orientation = vbPRORLandscape The scaling values in my printer (HP LaserJet 5000 Series PCL 6) will be set as below: - Printer.ScaleLeft = 1140 - Printer.ScaleWidth = 16354 - Printer.ScaleLeft = 0 - Printer.ScaleTop = 0 Questions 1. Is the scaling value (ScaleLeft,ScaleTop,ScaleWidth,ScaleHeight) is consistent the same for all printers (different printer types/drivers) 2. If the answer is YES, how to calculate the scale for different printers Your help is highly appreciate

Shell Guru Needed! www.vbcity.com

Happy New Year!Windows 2000, Access 2000, Annoyance 2004Why, oh why, can't I get Shell to work with 'printto'? I'm ramping up to solving my issue with users on a Terminal Server setup. Figured if I could get them to pick a printer, then I could send the file to that printer with Shell and 'printto'. However, when I use the routine below I get a 'success' value from Shell and nothing prints. Here's the routine I'm using:Private Sub Command0_Click()Code:Dim lngHWnd As Integer    ' HPLJ8000DN is the name I get for my printer of choice when I have Windows list the names of all    ' the printers on the network. Note, however that it fails equally well when I pass it the name of the printer    ' as either "\brgls09.rgl.netHP LaserJet 8000 Series PCL 6" or "HP LaserJet 8000 Series on PCL 6"    lngHWnd = ShellExecute(0, "printto", "c:1Snap est1.pdf", "HPLJ8000DN", vbNullString, 1)    End Sub "HPLJ8000DN" is the name I get for my printer of choice when I have Windows list the names of allthe printers on the network. Note, however that it fails equally well when I pass it the name of the printeras either "\brgls09.rgl.netHP LaserJet 8000 Series PCL 6" or "HP LaserJet 8000 Series on PCL 6"It fails on all file types I've sent it including .snp, .doc and .pdf. All of these apps show that they support the 'printto' verb. If I set my statement to show the app, Acrobat will open and display the file I've passed it, Word will open with no file up and, well, who knows what happens with the .snp file 'cause I get nothing.Argh!Thanks for any help 

PCL Programming In VB www.xtremevbtalk.com

What is the syntax to using PCL codes in VB?

How To Create Dynamic Printers(Print To File)? www.vbcity.com

Hi,I am trying to create dynamic Printers(Print to File) based on User Login. I am trying to use PrintUI.dll. But it would just let me create a regular printer on a standard port. It wouldn't let me create a "Print-to-File" Printer. Any thoughts?I am able to create printer by using this commandrundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f %windir%inftprint.inf /r "lpt2:" /m "HP Laserjet 4000 Series PCL"but when I am trying to create "print to file" printer using a print file name("c: est.prn:") using the following coderundll32 printui.dll,PrintUIEntry /if /b "Test Printer1" /f %windir%inftprint.inf /r "c: est.prn:" /m "HP Laserjet 4000 Series PCL"I am getting error: arguments are invalid. Can anyone tell me why my code is not working or whats wrong with this code.Please help me.ThanksHussain

PCL Programming In VB www.xtremevbtalk.com

How can i incorporate PCL commands into a visual basic program?

Sending Control Characters In Text File www.vbforums.com

Dear All,i am using vb6.is it possible to send non-printable control characters in printer objects print statement ?orhow to send control commands in a text filethanksM A Sulaiman

Form.print Landscape? www.vbforums.com

I tried to print out a form using form.print, after the line Printer.Orientation = vbPRORLandscape. It said that the this type of printer could not print this format (when it tried to print). The printer printed this error:PCL XL error Subsystem: KERNEL Error: IllegalTag Operator: 0x1b Position: 2In case this matters, the printer is a brand new HP LaserJet 4000 N. I doubt that's the problem though.Any ideas how I could print a form in landscape without errors?Sample Code Welcome

Controlling Printer Media Type In VB6 www.vbforums.com

I'm using a 3-tray HP4000 printer, with the third tray containing colored paper, and set to media 'color' via the printer's own menu.If I use the natural, PCL6 printer driver, I can't print to tray 3 without specifying the media as 'color'. In either VB6 or Word/2003, the paper is drawn from one of the other trays and the printer prints a PCL XL error message 'Warning: IllegalMediaSource'. If I set the media to 'Color' in Word's print dialog box, printing occurs correctly.Is there any way I can specify the media programmatically in VB6 - I don't want to force the user through CommonDialog in order to specify the media? Is it possible to pick up this setting on the printer via an API call?This problem doesn't occur if I use a PCL [rather than PCL6] driver for this printer.

Clear The Transmit Data At Output Buffer (MSCOMM) www.vbforums.com

I am using the mscomm to connect the printer at comm port. I sending some data to be printed on the printer. I am using some ASCII code to issue command to the printer.(Not VB printer object).Sometimes i may want to cancel the printing job, how can i clear the output buffer? I tried to set outbuffercount = 1 but it is not working. Thanks

How To Use The Condensed Mode With A Dot Matrix Printer? www.codeguru.com

How could I send this command with VB6, I'm still trying sending with the Printer.Print command.If someone knows, I need help ASAP.Thx.Fernand

Printing Auto Cad Drawing www.vbforums.com

Can someone tell me how I would go about sending an AutoCad drawing file (*.dwg) to a printer with the click of a button on a VB form? I cannot use the Shell command to Open AutoCad because the computers that will be using this form will not have AutoCad installed. I tried to use the Shell command to open a Dos window and the sendkeys command to give it a Copy File Name Printer Name but it doesn't work correctly.Thank You.

Printing Rich Text Box www.vbforums.com

After such an amazingly quick and polite response to my first question.I have 1 other question to ask.Im sending some direct print commands to the printer.printer.print "Header blah blah"printer.print ""printer.print "2nd Header blah blah"printer.print ""printer.print ""I then have a richtextbox with multiline = true which i want to print below these headers.i use this command - richtext1.SelPrint Printer.hDCbut this then prints the richtext box over the other headers which i sent direct to the printer.How do i resolve this by printing the rich text box contents half way down the A4 page?As stated in a previous topic im a novice and any help is really appreciated.Thanks again

Use Of PCL With The Printer Object www.vbforums.com

Can PCL commands be used with the Printer Object? If so, how? If not, what are the alternatives? I would like to use the PC-8 Symbol Set to do "boxing" of data areas in a report, e.g., the graphic symbols for Chr(201), Chr(205), Chr(187), etc.

Printing Using More Then 1 Printer www.xtremevbtalk.com

if i want to print 20 000 documents using 10 printers wich are on the network and also install on my computer how can i change the printer with code, i mean no common dialog..."HP LaserJet 2100 PCL6""HP LaserJet 2200 Series PCL"etc...is there a way to change the printer without asking anything to the user...

Printing Directly To LPT Port www.vbforums.com

I have an application which prints bar code labels. The label printer requires specially formatted commands and data to achieve this, which means I need to bypass the windows printer driver.I've figured out a way to this by writing the data to a file (bcode.prn) and then shelling to command.com to copy the file directly to lpt1:VB Code:Shell "command.com /c copy " & App.Path & "code.prn lpt1:", vbHide Is there another (or better) way to print directly to the lpt ports bypassing the printer driver?Printer.Print etc doesn't work as this still uses the printer driver.Thanks for any help

Printing Multiple Prints With One Button www.vbcity.com

Hi, I m using Crystal 8.0 for my reports and would like to know how to send two different reports to, two different printers with one button or a command Saif282

Printing Text FIle www.codeguru.com

How to send a text file (.txt file) to a printer for printing through Visulal Basic Code (using shell command).

Windows 7 Can't Install Additional 32 Bit Windows Xp Print Drivers For Shared Printer www.tomshardware.com

I had no problem installing my venerable HP LaserJet 4100DTN as a shared network printer in Win 7 Pro 64. However, when checking install additional drivers for 32 bit windows, 7 would not accept the PCL 6 inf, downloaded from HP, which is the same driver version that has been installed on my 32 bit XP Pro PC's. Also tried PCL 5, with same result. Message is the selected driver isn't appropriate for the selected architecture.

MSCOMM And Parallel Port www.vbforums.com

I'm in charge of a POS system and we use the MSCOMMcontrol to send the information to a Epson Serial printer, the fact is that I can send instructions to the printer very well (using the codes in the manual, escape characters) but I don´t know how to retrieve information from it. There is a command that when I send it, it is supposed to reply me if the paper is low, or if there's a problem with the printer.Finally I don't know how to work this commands (escape character) using the Epson Parallel printers, I try to use the Print command from VB but it just prints garbage. Thanks for reading this.

Creat A Dll Using Visual Basic www.xtremevbtalk.com

I am making a dll using VB. I don't know this language, but I know others languages, as such Java and C. I have a program in VB and I should creat a dll about it. The program is this : VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Begin VB.Form Form1 Caption = "Form1" ClientHeight = 4485 ClientLeft = 60 ClientTop = 345 ClientWidth = 5175 LinkTopic = "Form1" ScaleHeight = 4485 ScaleWidth = 5175 StartUpPosition = 3 'Windows Default Begin VB.TextBox txtAcct Height = 285 Left = 2640 TabIndex = 7 Text = "12345678" Top = 3120 Width = 2175 End Begin VB.TextBox txtLname Height = 285 Left = 2640 TabIndex = 6 Text = "Johansen" Top = 2160 Width = 2175 End Begin VB.TextBox txtFname Height = 285 Left = 2640 TabIndex = 5 Text = "Gertude" Top = 1320 Width = 2175 End Begin VB.PictureBox Picture1 ClipControls = 0 'False Height = 1575 Left = 360 Picture = "EnPrintFrm1.frx":0000 ScaleHeight = 1515 ScaleWidth = 1515 TabIndex = 3 Top = 1320 Width = 1575 End Begin VB.CommandButton cmdExit Caption = "Exit" Height = 495 Left = 2880 TabIndex = 2 Top = 3840 Width = 1935 End Begin MSComDlg.CommonDialog CommonDialog1 Left = 4200 Top = 360 _ExtentX = 847 _ExtentY = 847 _Version = 393216 End Begin VB.CommandButton cmdPrint Caption = "Print Me" Height = 495 Left = 240 TabIndex = 0 Top = 3840 Width = 1935 End Begin VB.Label lblAcct Caption = "Enter Account#:" Height = 255 Left = 2640 TabIndex = 10 Top = 2760 Width = 2295 End Begin VB.Label lblLName Caption = "Enter Last Name:" Height = 255 Left = 2640 TabIndex = 9 Top = 1800 Width = 2175 End Begin VB.Label lblFName Caption = "Enter First Name" Height = 255 Left = 2640 TabIndex = 8 Top = 960 Width = 2295 End Begin VB.Label lblEncoding Caption = "Send the Track 1 data as: ~1" Height = 255 Left = 240 TabIndex = 4 Top = 3480 Width = 4335 End Begin VB.Label lblDesc Caption = "This form is used to send Mag encoding, print text." BeginProperty Font Name = "MS Sans Serif" Size = 12 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 735 Left = 240 TabIndex = 1 Top = 120 Width = 4215 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub cmdExit_Click() End End Sub Private Sub cmdPrint_Click() CommonDialog1.ShowPrinter 'Use the common dialog so that changes 'may be made to the driver Printer.ScaleMode = 6 'Vb millimeters Printer.CurrentX = 0 'Left, be aware of driver's orientation Printer.CurrentY = 0 'Top, be aware of driver's orientation Printer.FontName = "System" 'Tilde, track number method is used to send magnetic encoding data 'These two characters inform the driver to create encoding commands 'The next two lines will encode but do not print. Printer.Print "~1" & txtAcct 'track 1, Alphanumeric allowed Printer.Print "~2" & txtAcct 'track 2, numeric only 'Track three is not shown in this example Printer.PaintPicture Picture1.Picture, 40, 12, 35, 35 'Use any true type font to print on the card Printer.Font.Name = "Arial" Printer.FontBold = False Printer.FontSize = 16 Printer.CurrentX = 12 Printer.CurrentY = 12 Printer.Print txtFname Printer.CurrentX = 12 Printer.CurrentY = 24 Printer.Print txtLname Printer.CurrentX = 12 Printer.CurrentY = 36 Printer.Print txtAcct 'No barcode sent, see 010109-000004 click assist example if needed Printer.EndDoc 'This line sends the job to the driver End Sub These are my questions: What is the comand: Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" ? Do I need make any modification in program for creat a dll?

Load/Eject Printer www.vbforums.com

Hi Friends,I'm using DOS Based Print in VB. My problem is this that I've to Load the Printer Page (I don't know whether it is possible or not). Actually when My App prints a Receipt I've to move paper for 8-10 line. Now User has to set the paper back upto Printer Head for next Print. That's why I'm searching for any code which will send Load/Eject command to printer on every print so that user will not have any need to set the Page.Thankx

.net Printing With Both Texts And Images? social.msdn.microsoft.com

I'm new to VB.net programming on printing a page to a thermal printer (Epson T88IV). I really had a hard time figuring out how to code the printing of a bitmap image and some text, while sending commands (through font control) to the printer.I tried sending the escape characters with Control font, but the Graphics.DrawString of PrintPageEventArgs do not allow it.. so I used the RawPrinterHelper class I found on Microsoft KB. It worked out but, I cannot print a bitmap image with it.Anybody knows how to do that?

Use VB To Send File To Printer... www.codeguru.com

Hi,this may sound like a simple question, but what is the command to send a file to a printer? I'm trying to use the common dialog box first to choose the network printer to print to, and then use the Printer Object like this...Printer.print 'FileNameIt doesn't seem to want to send the file to the printer, do I have to send the file record by record? Please tell me I can just send the damned file!!!Thanks,Sean

Printing From Visual Basic 6.0 www.vbforums.com

I print from my Visual basic aplication, directly at runtime. it prints just fine. but sometimes, after printing, it still keeps spooling something into memory! then the printer spits out a error saying that " Pcl xl error , kerner error." has anyone had this problem? what's happening here? all the printers we have are H.P Printers. can anyone Please help me?thanks,anitha

Mixing Raw Print Data And Normal Output www.xtremevbtalk.com

Hi all,I am producing PCL 5 print data. I have a relatively large bitmap that occurs regularly throughout the print job and it's making the print files very large (approx 300Mb for 1000 pages).I can eliminate this problem by creating a PCL macro, but this involves sending raw printer escape codes as well as formatted print data. To generate the macro I need to send an escape sequence to start macro definition (Esc&f1y0X) followed the print data that is to be recorded in the macro followed by the end-macro-definition code (Esc&f1X). Then to call the macro I need to send the execute macro code (Esc&f1y3X).I referred to the MicroSoft knowledgebase and found article 154078 here:http://support.microsoft.com/default...b;en-us;154078This wasn't very helpful as the example and description assumes that the entire print job will be generated using the WINSPOOL API, but I need the driver features to render bitmaps and provide other GDI drawing functions. I tried adapting the supplied example to create a test file as follows:Code:' TESTING MACROS' Declarations required to support printing raw dataPrivate Type DOCINFO pDocName As String pOutputFile As String pDatatype As StringEnd Type Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal _ hPrinter As Long) As LongPrivate Declare Function EndDocPrinter Lib "winspool.drv" (ByVal _ hPrinter As Long) As LongPrivate Declare Function EndPagePrinter Lib "winspool.drv" (ByVal _ hPrinter As Long) As LongPrivate Declare Function OpenPrinter Lib "winspool.drv" Alias _ "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, _ ByVal pDefault As Long) As LongPrivate Declare Function StartDocPrinter Lib "winspool.drv" Alias _ "StartDocPrinterA" (ByVal hPrinter As Long, ByVal Level As Long, _ pDocInfo As DOCINFO) As LongPrivate Declare Function StartPagePrinter Lib "winspool.drv" (ByVal _ hPrinter As Long) As LongPrivate Declare Function WritePrinter Lib "winspool.drv" (ByVal _ hPrinter As Long, pBuf As Any, ByVal cdBuf As Long, _ pcWritten As Long) As LongPrivate Declare Function GetLastError Lib "kernel32" () As Long Private Sub PrintRawData(RawData As String) Dim sWrittenData As String Dim Result As Long Dim nBytesWritten As Long Printer.Print "About to send raw data" sWrittenData = RawData Result = WritePrinter(Printer.hDC, ByVal sWrittenData, Len(sWrittenData), nBytesWritten) If Result = 0 Then Dim ErrNo As Long ErrNo = GetLastError() MsgBox ("Call to WritePrinter failed.") End If Printer.Print "Raw data sent"End Sub' End of support for raw data printing' TESTING MACROS Private Sub Command1_Click() Printer.Print "First stuff we're printing." + vbCrLf PrintRawData ("Raw data to printer" + vbCrLf) Printer.Print "Last stuff to printer." + vbCrLfEnd SubWhen I look at the PCL data produced by the printer driver, I can see all the text that is generated by Printer.Print, but nothing from the WritePrinter API call.Any help, anybody would be greatly appreciated!Cheers all!

Network HP Printer Won't Install www.sevenforums.com

Trying to install an HP 2100 tn printer through a Linksys router to a Win 7 62 Pro machine. Win 7 drivers for Asus MB, Marvell Card and latest firmware for Linksys router. Tried Win 7 printer installation routines a jillion times...and it couldn't find the printer (power cycled router and printer several times). Used HP latest network diagnostic but it can't find the printer. Used latest PCL 5, 6 and PS drivers from HP - nothing. Used netsniffer with HP diagnostic and it looks like the diagnostic sees the printer (reports the correct i.p. address) but doesn't identify it as a printer. Went back to XP where the printer works and found it is currently working with IPX protocol. Anyone have any ideas? I don't want to buy a new printer, or stick with XP.

VB Send Data To Printer www.xtremevbtalk.com

Dear Users, The printer that im using now need some codes to make it understand the function, that is not provided in the normal Printer property or method. The printer is cutter-enabled to cut the label every "A" labelsA--- may takes different value from time to time.. The printer manufacturer provided with some code that ready to be sent from the program (Software)..eg. &lt;ESC&gt;A &lt;ESC&gt;~A2 &lt;ESC&gt;Z'this code is the Printer native language..that set cut every 2 labels....How im going to send this data to the printer...from VB.Thanks & RegardsKahFui

Printer Port www.vbforums.com

Hi!How I can communicate with printer port in VB like in DOS - copy myfile.txt LPT1:/B. I must send ASCII charachters to printer port for some hardware.Thank youDejan

Sending ASCII Command To Printer Issue *** Thank www.vbforums.com

Have someone used to send ASCII command in order to control printer from VB?I'm trying to create a barcode printing program ,that support ASCII command.For example, I would send below ASCII to print a barcodeB0,0,10,N,"23240015MI03435"but I've no idea.Thank in advance..

How To Send To Printer On Windows XP? www.webmasterworld.com

I've just written a script that processes a Postscript file before sending it to the printer. I'm doing this with a printer port redirection using Redmon to execute the PHP script with c:phpphp.exe -c MyScript.exe. The postscript comes in as STDIN to the script from the printer driver. Everything is fine except one thing. I simply can't work out how to send the modified Postscript data to the printer! Any help, please? I have a Windows XP machine with PHP and Apache, and a HP 5100 LaserJet printed (PCL and PS) on a JetDirect wireless server card. This means that on the Windows command line I can do this: lpr -S -P HPLaserJet5100 filename as well as print from within applications by the normal method. However, I can't work out what PHP commands I should use to send a file, or a PHP string var (containing the entire Postscript data), to the printer! I can't pipe data in an lpr command, can I? I tried printer_open() printer_write(), etc, but that just made the printer print the Postscript as raw text without interpreting it! How do I communicate properly with the printer?

My Printer Just Churns Out Blank Paper!! www.vbforums.com

I've got a large string which i'm trying to print (ie, send to the printer) called printstr. On Error GoTo err1 CommonDialog1.PrinterDefault = True CommonDialog1.CancelError = True CommonDialog1.ShowPrinter Printer.NewPage Printer.Font = "Arial" Printer.ColorMode = 1 Print printstr Printer.EndDoc Printer.KillDocThis just send blank pages out the printer... does anyone have a suggestion?Is there a function to call the system print command on a text file?CheersMafro

Print.. Printer.Print ?? Ahh!!! Under Win Nt Server 4.0 www.vbforums.com

Hi... I have just installed windows nt server v4.0 as well as vb pro 6.0. Trying to use the printer command as follows:printer.print = "Hello"printer.EndDocThis produces the printer icon near the time to appear. The only problem is that the printer does not print anything.. Performed a test print under printers folder in control pannel and it worked, But trying to print in vb will not work.. Tried 2 printers aswell.. Please help

Create Printer Driver www.codeguru.com

I'm doing a project where Machine A sends (prints out from printer) out a printout to machine B and machine B will read the printout and stores in database before sending to printer.I would want to create the simplest printer driver without word wrap... Is that possible in vb? or if not then how to in VC++.Does anybody knows any printer driver that does not have the function of word wrap at all. I tried using generic printer but it word wraps my document...Thanks in advancethanksCheers

How To Print Data From VB By Using The Com Port? www.xtremevbtalk.com

hi In my application i have print the credit card transaction. here i am connectd the printer to the com port which does not have any installed software. actually if i use the hyper terminal i can able to print the data. so know how can i print the same with the VB. here i have two command sets for this ::01 70 xxx for text printing:01 72 X for no of line feed.how can i send this commands to the printer.

Send HEX To Zebra Printer? www.vbforums.com

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]...

VS 2008 : Using COM1 Over The Network? www.vbforums.com

I have written in VB.NET a POS application.I'm using one thermal printer connected to COM1,I create a bat file wit this command : copy mydata.txt COM1: I run this bat and printer is working fine.I've installed my application on a second computer in the network and I need to print from there to the same printer,but is located on another computer.So how I use COM1 over the network,I've seen that for LPT port can be used NET USE command.

Change Default Printer In VB www.vbforums.com

Is there a way to change the default printer. One way suggested in Vb Help is to change the Printer.Device name to the specified printer and then use the set printer statement. But this just sends the output to that printer. I want to change the default printer in start/settings/printer also to show the default printer to the specified printer.Is there a way in VB or is there an API to do this.Thanks!

VB Data Report Text Box Multiline www.vbcity.com

I'm facing a problem with VB data reportIn one rptTextBox which displays string , the property CanGrow is set as TrueThe textbox displays the string correctly in two lines, if the string length is greater than textbox width.But in one workstation, the string is getting overlapped.ie. If there are two lines , the second line is printed over the first line.How to avoid this ??I've distributed the same program to different workstations, all Windows 98, Connected to a HP 5000 PCL 6 LaserJet Printer through network.Pls Help...

PostScript Printer Driver Installation Problem In Windows Vista www.vbcity.com

For my VB application I am using PostScript Printer. And while installing Postscript Printer Driver on Windows Vista getting Error message as: "Operation Could not be completer(error 0x00000705)Windows Cant locate suitable printer Driver."I am using following command to install printer.rundll32 printui.dll,PrintUIEntry /if /b "PrinterName" /f %windir%inftprint.inf /r "FILE:" /m "XPrint 4920/4925 PostScript"The printer installation works file on Windiows XP.Thanks in advanve

Sending File To Printer www.codeguru.com

Hello Friend,I am using the concept of Text I/O and creating a report in visual basic, I want to send the report to the printer directly .. In this regard I was using the Printer object print command but it is not that efficient.. Can U suggest me any API wherein I can directly send the File to the printer ..Urgent!!RegardsPrasasd

Y These Code Not Working??(transmit Commands To Epson TM-T88IIIP Printer) www.xtremevbtalk.com

Code:strMessage = Chr$(27) & Chr$(33) & Chr$(16) & _ Chr$(27) & Chr$(33) & Chr$(32) & _ strWord & vbNewLine & vbNewLine & _ Chr$(27) & Chr$(33) & Chr$(0)i m trying to send commands to Epson TM-T88IIIP receipt printer, these code should make the print out double height and double width, but these print out the character(like chr(33) print "!"), the printer dont recognise the commands.i m using Epson TM-T88IIR as printer driver.anyone can help??thx in adv..

Change The 'Document Name' On Printer.Print www.vbforums.com

I'm having a problem (maybe it's not) when i print a Text Box VB Code:Printer.Font = "Fixedsys"    Printer.FontSize = 9    Printer.FontBold = False    Printer.FontItalic = False    Printer.FontUnderline = False    Printer.Print TextBox.Text    Printer.EndDoc and when I open the Printer's dialog box to see the Documents i have sentIt's always shown in 'Document Name' the name of my project 'DTMS'I wanna do something everytime i send a printing i can change the Document Name, for example the name of the Printing i'm sending. For example'Printing #127'

Send Postscript File To Printer www.vbforums.com

I have a good postscript printer and I want to send a postscript file I generated to that printer via VB commands. When I do send it to print, I need to specify the number of pages to be printed. Does anyone know of any code that will do this for me?

Open Cash Drawer visualbasic.ittoolbox.com

Does anyone know how to open a cash drawer in VB.net. I have an Epson t88IV printer connected to the lpt1 port and the cash drawer is connect to the printer via a rj45 jack. How do I send commands to the printer to force the drawer open??? Any help would be wonderful...Thanks

Special Purpose DLL www.codeguru.com

Hi, I have a special need for a DLL that can send raw data bytes to a windows printer. My problem is this, I have a Novell network with the file server attached (via LPT1) to a printer re-director servicing 7 printers. (Printer port is captured). It takes a command (text string) like:@bfOUT3;The "3" would switch the printer output to printer #3 and will remain there until another command string is sent.Now, the hard part, I write in VB6 and EVERYTHING I send to the printer port is converted to graphics data according to the current font VB is using. This makes it impossible to re-direct my printers directly from VB. I currently have to shell VB out to a 16-bit dos assembly program I made just to do this.I can't program in C or C++, I only know 16-bit assembly and a lot of VB6. What I need is a DLL that will work with VB6 that would allow raw data bytes (text string) to the printer port skipping VB's "printer page" graphics. Something simple like this in VB would work: call OutToPrinter("@bfOUT1;")Thanks for reading this, Any Takers?

Word.Interop Print To Pcl File? stackoverflow.com

I'm working on an application which automatically generates faxes.The system uses word interop to fill a template .doc file with values (which works fine), but when it comes to be time to print the resulting file to pcl, I'm having issues. So, we've got a HP Laserjet printer set up which prints .pcl files. Dim appWord As New Word.Application Dim doc As New Word.Document appWord.ActivePrinter = PCL_PRINTER [code]...... Problem is that when the doc.PrintOut line runs, word complains, popping up a message:I've tried all sorts of combinations of things, but the error message persists. Very occasionally, the thing actually works and generates a usable pcl file, but 98% of the time, the error message pops up and the whole process grinds to a halt. We have other applications on the same server which do almost exactly the same thing, except they print from excel instead of word, and they work without throwing the error.

Ubuntu Networking :: Printing Documents Via The Command Line? ubuntuforums.org

how to send a document to print on a network printer (via IP address) from the command line (not a GUI interface).

Changing Font Size For Printer Object www.codeguru.com

Does anyone know how to change font size in using the Printer object? I have 2 applications, one as a DOS-based Clipper application, the other was the same application but created in VB 6.0. The reports for both applications are printed in a dot-matrix printer. When I print my reports in VB using the Printer.Print command, I get smaller fonts, therefore, more lines are printed on a page when compared to the output of my DOS application. Thanks in advance.

Motorola Droid :: Bluetooth Printing From Your Android - Droid Device androidforums.com

Just trying to get bearing on this project Im working on for Android / Droid devices. Im about ready to release a beta test for a printing utility in a week or two and was wondering if a Bluetooth printing utility would interest anyone. Basically it will print from various standard PIM applications on the device printing Text and Graphics on Full-Size HP-PCL compatible printers as well Small Format ESC/POS mobile printers.

Printer Orientation www.codeguru.com

how can i change my printer orientation by my program.when i am reffering this ,saying readonly property.Dim p As PrinterFor Each p In PrintersIf p.DeviceName = "\saHP LaserJet 1200 Series PCL 6" ThenSet Printer = pp.Orientation = vblandsacpeExit ForEnd IfNextor is there any esc sequance(for epson dmp) for it.thanx.

Hp USB Color Laserjet Will Not Install? www.sevenforums.com

Tryed to let win 7 do automatically. Failed numerous times. Try the Pcl 6 driver on the hp website. Hp sitee says it should install. Running 32 bit os pc is on a network. Printer is a hp color sphere laserjet 3000. I am getting a 3000 printer icon. The icon is inactive.

Sending Raw Data To Printer Over USB? www.vbforums.com

I have a barcode printer that can connect to the computer via USB or serial cable. I have a file containing the printer command code. The quick and easy way for me to practice and learn the printer language (EPL for a Zebra printer) is to open up DOS and type "copy printertest.txt COM1:" if I'm connected via serial. This works fine.How do I send my code to the printer via the USB interface? When I try to send "copy printertest.txt USB001:" it says "device doesn't exist". USB001 is the name of the virtual printer port.Once I integrate the printer with my program, I would normally use the MS Comm control to communicate with the printer over the serial port, but I want to use USB. How do I send my commands over USB?

VBScript To Send DOS Print Command forums.devshed.com

I'm attempting to print to a Zebra printer (barcode) by taking the results of an .asp page and sending the output to the Zebra printer, which will interpret the output / embedded Zebra Program Language (ZPL). Thus, printing the output at runtime. Does anyone know how to send a dos command with a vbscript from an .asp page that will send the .asp result output to a notepad file then send the notepad file to the printer at run-time?I tried a few scripts, but nothing worked.thanks!

Printing In Line Printers forums.devshed.com

hello evryone. Im trying to send data to a line printer but i don't want to use data report or the printer object in VB. i want the printer to print directly when it receives data. can anyone of you please tell me how to do it? (in VB) i'm using epson lx-300 printer. thanks in advance.

Printing Several Pics At Once, Running Out Of Mem www.xtremevbtalk.com

Does anyone know how to send several pictures to a printer without running out of memory?I've got a series of pictures I'm trying to print, each picture is about 3.5 megs. My printer can handle one picture at a time; however, when I send 2 or more pictures, my printer runs out of memory.A solution would be to only send one picture every 15 or so seconds to the printer. I tried using a FOR T = 1 TO 15000: NEXT T before the PRINTER.ENDDOC command and it didn't work. No pages would print until all the pages were sent. Is there a way to have a picture sent to the printer every X number of seconds so as not to use up all a printers ram and get an out of memory error?Thanks,L

Printing From A .prn-File ***Resolved*** www.vbcity.com

It's very easy to send the output from a printer to a file. But it seems impossible to send this file back to a printer.After finding no way in VB, I tried it via SHELL-command and the 'good old' DOS-copy-command ( "c:command.com /c copy " & strFile & " prn:" )Ten years ago, this was working well. But if the printer isn't connected to a printerport but is a network-printer then i only get the message: 'device not ready'.Is the possibility of printing into a file only a useless archeological remain? Or does anybody know a solution for this problem ?Edited by - Ken Twin on 12/15/2004 4:22:26 AM

Spooling Data To Another Printer visualbasic.ittoolbox.com

Hi allI've got two printers installed in my system . But i need to print usingonly 1 printer.The print command comes from a seperate application & i hav a program(VB )to watch the two printer status. When ever a job comes in 1st printer ineed to redirect it to 2nd printer.Can i do the re-spooling of a job thro Vb prgram ?got any help ?Thank Youvipin

Write Bytes To Com Ports www.vbforums.com

I want to send data to a fiscal printer through com2 port and reading through its protocol i found out that the data sent should have a 3 byte header(FEh F1h E1h) so that they can be recognized by the printer.Is there a way ,by using vb to send these bytes including the data to the printer?(In other words to write specific bytes to com2 port).Thanx in advance

VBA & Direct Printer Access - Version: 2003 (11.0) www.utteraccess.com

I have Thermal Printer I am wanting to use to print barcodes. I have some references of VB code but cannot seem to find the proper Library I need to reference to do some of the print commands to directly access the printer. Can anyone help me with what Library I should reference to be able to directly print? Sample code: Printer.Font = "Intermec Font c0" Printer.FontSize = 13 Printer.CurrentX = 720 Printer.CurrentY = 0 Printer.Print "Labels Unlimited" Form2.BarCode1.Value = "24585343434" Form2.BarCode1.Draw Printer.hDC, 500, 400 Form2.BarCode1.Value = "23485694943" Form2.BarCode1.Draw Printer.hDC, 500, 1

PCL 5 && Print To Specific Printer www.vbcity.com

Hi,My office has a couple of program(VB) written in house a number of years ago that used PCL 5(or 4) coding to print a specific type of graph. This program and graph have worked since we had purchased a printer(Lexmark optra E312L) months ago. We did have to make sure we had the correct driver to make it work.Last week the graph and all PCL based printing routines have suddenly offset by about 1/3 of a page. that is , last week what started printing at the top left corner of page now starts printing about 3" down the page. The rest of the printout is basically fine. If we put in legal size paper, the bottom of the graph is at the bottom of the paper, where it should be 3" up from the bottom. I believe this is the networking or lexmark's driver problem. Do you have any experience like that?If I change VB code related to these PCL 5 code, How could I do that? How do I change these PCL codes and creates a file? since I am nor familiar with PCL, really need your help.Thanks in advance.Firstry

File/Path Access Error www.vbforums.com

Here is my code:VB Code:Printer.Print "My Company"Printer.EndDoc Open "COM1" For Output As #1 'the error happens here"print #1, commands follws here I used the Printer object to print something then uses 'COM1' to directly print to it ( the printer is connected to COM1). I really need to do this for some reasons. Please help me...

Printer.print And Cut/copy/paste Please Help www.vbforums.com

the question is how would i print in vba is there a command similar to the VB command printer.print. i know that printer.print isnt a command in vba but thought maybe there would be a way to activate printer.print or another command to take its place. this is what i want it for i want to be able to print out information that i have in a textbox that i have on a excel sheet. and would like to use a module i got and have used in vb but it wont work cause of the printer.print command. well thanks for the help guys. ok while im here i mite as well find out how to do cut,copy, and paste i know this is easy but i cant figure it out i have looked in the help files and done what it says but it keeps cutting the whole textbox. i dont know whats wrong please help

Print On Network Printer (default) Not Working www.codeguru.com

Hello, I have a local printer installed (that is not the default printer) and a network printer that is the default. If I send a report to print using datareports, printing is correct, but if I send something to print using the printer.print then nothing is printed. The job is sent to the local printer instead! I´ve read that VB is supposed to send whatever to the default printer... why then isn´t it working for the printer.print? I need to print always to the default printer.

Printout Problem Under Windows NT forums.devshed.com

I have a small program that prints selected mails to the default printer, by using the printout command.The program works fine under Windows XP, but it's bugging me under Windows NT.I use two printers: a monochrome laser printer and a color laser printer. When the monochrome laser is default, the program also works fine under Windows NT. But when I select the color laser printer as default printer, no mails are printed. No errors are reported, but nothing is printed.Any suggestions???Are there any other way to print mail than using the printout command?Best regardsAllan, Denmark

Printing With Unicode In VB6.0 www.vbcity.com

I have an application that sends images to a printer and text to be printed. I use the command Printer.Print to send the text to the printer. This works fine with text strings containing regular ANSI characters. When printing the characters &#288;&#289; (Upper and lowercase g's with dots above them, ascii code 288 and 289) I get regular G's.Dim b() As ByteDim varG As Variantb = ChrW(289)varG = ChrW(288)Printer.Print bPrinter.Print varGAny suggestions on what I am doing wrong? 

Change Default Printer Before Using Shell Execute To Print Pdf Dicuments From Excel www.vbcity.com

hiI have made program that prints pdf documents from excel using shell execute command. Since I have to print documents differently I have to change the printer to which I send the documents during the run time. So can anyone tell me how to change the default printer in vba excel. shell execute function only prints to the default printer. Therefore I need to change the default printer.bye

Send Message To LAN www.vbforums.com

hello!Can anybody help how do we send a message to group of people (LAN/network) in VB without using "NET SEND" command.Thank you,

Registry Handling For Printers:Please Reply.. www.vbcity.com

Hi I want access the printer properties from registryI tried like this...but not working..Please help me out...The arguments i sent are stored in followingPublic Type cmdArgs    WordDocName As String    PrinterName As String    DestinationFile As StringEnd TypePublic myCmdArgs As cmdArgsPublic Sub main()    Dim lsCmdLine As String    lsCmdLine = Command() 'This reads the commnad line parameters    If lsCmdLine = "" Then        MsgBox "Please send arguments", vbInformation, "Print Documents"        End    End If        'The arguments are parsed here    'The pareseargument used to get the arguments from command line    'which i completed succesfully    Call ParseArguments(Trim(lsCmdLine)) 'its i completed         'Here i do not know what to do...    'User may send any virual printer name..    'I want to get Information of that printer from registry        Call GetPrinterInfoFromRegistry(myCmdArgs.PrinterName)        'Once i get the Info i want to set user speciafied printer as default printer    'till application ends     Call SetDefaultPrinter(myCmdArgs.PrinterName)       'Here i want to save the output file without any prompts for saving path    'Coz saving path we get form arguments    Call PrintFile(myCmdArgs.WordDocName, myCmdArgs.DestinationFile)    'Please reply and help me outEnd Sub

WinFax VB MAcro Error - Please Help visualbasic.ittoolbox.com

I am trying to get a VB macro to print to the Winfax Printer port.I use the command Application.ActivePrinter = "WinFax on FaxModem" to designate the printer and port to be used. This works for every other printer I have even the PDF printer port I have as well. But for some reason I keep getting the Run-Time error 1004 when trying to print to the Winfax Port. This is Excell 97 and WinFax10Thank you for any help.

Send Image From Computer Connected To GSM Modem To A Mobile www.dreamincode.net

how to use at commands in vb.net and how to send image from computer connected to GSM modem to a mobile using vb.net

Adding A Printer www.codeguru.com

I am trying to add a printer silently, I currently used a full set of shell commands to run the add printer wizard and sent all the keys respectively using .SendKey, Is there a better way of doing this? Also, is there a way to set printer properties? If anyone has some information or references I could look up, it would be much appreciated. Thank you

How To Stop The Autometic Line Feeding Of Printer www.vbforums.com

To the All,I am using two printer in my project.One is audit printer and other is slip printer.The printers are used both simultaneously one after another such as they are used like a toggle case.I am using the "Printer.EndDoc" command to print the output details for a particular printer.The problem is this when one printer completed its printing then it feeds some extra lines,when that printer used again, then the line gap between this two printing line is to large that is not fair according to the project.Is there any solution to reduce the gap, then help me as early as possible