473,836 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to avoid paper ejection after printer.enddoc

8 New Member
Hi buddies,

I am doing a project in vb6 for a restaurant. They are using continous paper roll of 5" width for billing. They need multi language printing. I tried it with Crystal report and even using printer.print command. As the bill is not having default size, i couldnt set a predefined paper size. When i give printer.enddoc the dotmatrix printer ejects enormous paper. I had searched many sites regarding this. Oops! no use.
Plese my buddies help me to make it succeed.

note: my competetor suceeded on this in various projects
Aug 12 '10
16 9930
gevanand
8 New Member
not like that, because i am using in-built driver "EPSON COMPATIBLE 9 PIN" driver in both OS
Aug 14 '10 #11
INFOCARE VENKATESH
2 New Member
I have over come this problem,
Method 1:
You can use Server Properties in the Printer and Faxes Menu in XP to define a custom paper size and call in your report writer. This works 100% for me.

Method 2:
You should print the bill in text format and redirect it to the printer by the DOS command :TYPE MYBILL.TXT>>PRN .
This method is very easy and the print out is faster rather than the windows print. There are also some fonts which prints faster like dos printing. Try those fonts.

Bye!!
Aug 17 '10 #12
gevanand
8 New Member
Dear Venki
Thank you for your msg.
But understand me I have to print english and tamil fonts with the bill. so your Text print option wont apply me.
Then I am not having fixed length of paper as its roll paper and the print has to end at the end of bill.
Plz Help me!
Aug 18 '10 #13
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi Gevanand. I think our posters have made all the suggestions they can to assist you with what is a very unusual request. That you can print using the methods listed to an old 9-pin dot-matrix printer at all is something of a miracle. I note that this is a project you are undertaking - even if we had a complete solution, it would not be in keeping with the spirit of your project for you to keep asking others to solve it for you!

-Stewart
Aug 18 '10 #14
gevanand
8 New Member
Dear Stewart
It works fin with Windows 98SE.
But not in XP thats y i am confusing
Aug 19 '10 #15
pepenudo
1 New Member
°Hi!

First of all, sorry for my English.

I reached this thread because I had the same problem.

I'm using an application writeen in access2 and in some cases, where the application does the EndPage or the EndDoc it sends some Chr(10) to the printer.
Some printers ignore Chr(10); only in case of Chr(13) & Chr(10) it feeds the paper. Some printers ignore Chr(10).

But I observed that the same printer that has the problem can work in some cases.


Solution (I do not know the exact names in english, I use the XP in Spanish):

1- Go to the Printer properties.
2- Device configuration.
3- There should be an Option (First one) named "Continuous Feed" or some like that. Yo should choose a Continuous paper, Not A4. I Use "Continuous USA Standard".
Sep 1 '10 #16
you must use print using form method to stop the roll paper in your dotmatrix printer. i mean using WIN32 API to add your custom paper size to the registry, but the problem is when you select your custom paper size it doesnt appear in the printer you selected. look like its appear in the global paper size on the registry but not for your printer, try read article "How To Print Using Custom Page Sizes on Windows NT and Windows 2000"in microsoft developer network website.
Oct 18 '10 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

2
22323
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to the selected printer. I'm not concerned about the text format. What I tried is something like this CommonDialog1.ShowPrinter
4
9706
by: Lizard King | last post by:
Hi. I have a computer running a third party software (POS). The thing is this application opens the printer port and I need to use another program while the first one is still running. Since the other app has the printer port windows shows an error (path/file access error). Is there a way that two applications can share the printer port?
5
2034
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar actions or set variables. We are interested in doing this inline (no pop-up dialog box). Specifically, where how would I replace the following properties/methods of the old Printer objects. Printer.NewPage Printer.TextHeight Printer.TextWidth
2
3200
by: Daniel Iwan | last post by:
Hello everyone! I have a problem with using TCanvas Printer and network printer HP LaserJet It print just first page and throws blank all the rest. WinNT with Borland Builder 5. All works fine with my HP 3820 with USB printer (WinXP)
13
21717
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual data in the string being sent to the printer. However, if I prompt the user for data or if I insert data from a particular record/field in a form Access crashes/closes on its own. I have included the code below, if anyone has any suggestions,...
1
4361
by: anilkumarkp | last post by:
Hai I have to print a receipt in pre-printer stationary with bar code, My paper size is 4", i have set the paers size as Printer.ScaleMode = 1 ' vbTwips Printer.Height = 4 * 1440 Printer.width = 8 * 1440 but after priting this, when i put Printer.EndDoc, it is skiping the all 12" paper, in this 12" i have to print 3 receipt (4x3). If i have not used the Printer.EndDoc it is not going to the spooler,
2
5789
by: cjreynolds | last post by:
Please excuse my cluelessness on the subject - this is the first time I've worked with printing in VB (and it may be the last) and the more I work with it, the more confused I become... First, I'm setting the printer's scale and the X,Y position of the output: Sub SetLargePrinterScale(obj As Object, VertPosition As Single) Dim Owid As Single Dim Ohgt As Single Dim Pwid As Single Dim Phgt As Single Dim Xmid As Single
0
1153
by: shanavaspi | last post by:
Hi guys am using printer object to print Printer.print "Text" Printer.enddoc After the end doc the paper jumps to next page Hoe i stop paper scrolling Can any body Help me
23
11468
by: Al Grant | last post by:
I have a 'printable' button to generate printable output and want this to use A3 if available, irrespective of the user's default printer setting. Is there any way to set a page's preferred printed paper size from HTML? Portable if possible, but IE-only would be better than nothing.
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
10821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10527
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10573
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6973
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5812
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4443
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4001
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.