473,473 Members | 2,277 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

printing problem

In my application I want to print a label (not a object , but a paperone).
The problem is that the labels ar not the same size as a standard A4 format,
they are
smaller, about 152mm high.

When i give the following command, the printer prints the text and then goes
to the
next page. The problem is that the labels are smaller then the A4 format
that the printer
is using, and I don't now who to set this (or what propety) to mek the
printer go to the
next page after 152mm instead off 298mm (A4).

Printer.Print "hello world
Printer.EndDoc

Maybe someone can give me some advise.

Thanks from Holland
Martijn.
Jul 17 '05 #1
5 2877

"Martijn" <in**@NSdiscowinkel.nl> wrote in message
news:3f***********************@news.versatel.net.. .
In my application I want to print a label (not a object , but a paperone).
The problem is that the labels ar not the same size as a standard A4 format, they are
smaller, about 152mm high.

When i give the following command, the printer prints the text and then goes to the
next page. The problem is that the labels are smaller then the A4 format
that the printer
is using, and I don't now who to set this (or what propety) to mek the
printer go to the
next page after 152mm instead off 298mm (A4).

Printer.Print "hello world
Printer.EndDoc

Maybe someone can give me some advise.

Thanks from Holland
Martijn.


Have you explore advancing the paper manually (i.e. by issuing print
statements). The .EndDoc will create problem because that issues the chr) or
Form Feed. My suggestion is to manually issue rint statements to include one
that will "page oiverflow" to the next page and continue fro there. When the
job is completed (all labels printed), at that timme issue the EndDoc.

Beste wensen van New York.
Jul 17 '05 #2
On Sat, 02 Aug 2003 12:29:50 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:
<snip>

Have you explore advancing the paper manually (i.e. by issuing print
statements). The .EndDoc will create problem because that issues the chr) or
Form Feed. My suggestion is to manually issue rint statements to include one
that will "page oiverflow" to the next page and continue fro there. When the
job is completed (all labels printed), at that timme issue the EndDoc.


I would not fancy using that through the VB Printer Object

It knows all about the height of a page

That used to be a good way of printing to dot matrix style printers
under DOS
Jul 17 '05 #3

"J French" <er*****@nowhere.com> wrote in message
news:3f***************@news.btclick.com...
On Sat, 02 Aug 2003 12:29:50 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:
<snip> It knows all about the height of a page


That info is whatever is returned by the printer properties. You can fool
the system by saying you have a 50 feet long paper. It does not care.
Jul 17 '05 #4
On Sat, 02 Aug 2003 13:30:34 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:

"J French" <er*****@nowhere.com> wrote in message
news:3f***************@news.btclick.com...
On Sat, 02 Aug 2003 12:29:50 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:
<snip>

It knows all about the height of a page


That info is whatever is returned by the printer properties. You can fool
the system by saying you have a 50 feet long paper. It does not care.


Could that not be a bit nasty ?

The Printer Object creates a memory image of the page ...
Jul 17 '05 #5
BTW, as I pointed out to the OP in anothe VB NG
- all he needs to do is to jigger the Height property of the Printer
Object to set the page height to whatever he wants

On Sun, 3 Aug 2003 08:22:28 +0000 (UTC), er*****@nowhere.com (J
French) wrote:
On Sat, 02 Aug 2003 13:30:34 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:

"J French" <er*****@nowhere.com> wrote in message
news:3f***************@news.btclick.com...
On Sat, 02 Aug 2003 12:29:50 GMT, "Raoul Watson"
<Wa*****@IntelligenCIA.com> wrote:
<snip>

It knows all about the height of a page


That info is whatever is returned by the printer properties. You can fool
the system by saying you have a 50 feet long paper. It does not care.


Could that not be a bit nasty ?

The Printer Object creates a memory image of the page ...


Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
1
by: DCraig | last post by:
I'm having problems printing to a line printer from both Crystal Reports and SQL Server reporting services using dotnet. When I try and print a report from an application with Crystal I get the...
5
by: Stefania Scott | last post by:
I am trying to print a word document from Access. The code I've written works well in my computer but does not in the one were it is needed. Here the piece of code: 'doc path strObjectPath =...
5
by: C-Services Holland b.v. | last post by:
Hi all, I've run into a problem trying to print from vb.net (2002) in Windows 98. To test it I've setup a single form with a button and the following code: 'the form has a button called...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
2
by: Teemu | last post by:
I have an application created with VB6 and now I'm converting it to VB 2005. Conversion is not so simple because printing is so much different. In my app I have Timer-component, which is creates...
2
by: Sukh | last post by:
Hi I am stuck with a problem Can anyone help me out from this... I am printing a report on pre-printed continue paper using dot-matrix printer using vb.net. Data is printing on all the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.