Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem printing continuous feed labels

Status
Not open for further replies.

boreed

Programmer
Nov 22, 2000
4
US
I need help printing to continuous feed labels using VB 6.0, Windows 95, and an Okidata Microline 395.
My problem is we're using special labels that have the distance from the top of one label to the top of the next as 14/16 of an inch (or .875 inches). I go into the printer properties and set up a custom paper size but it only supports two decimal places so I can only put in .87. When printing using VB I'm losing a line every 3 labels or so. It works fine if I make the paper size 8.75 inches but after every PRINTER.ENDDOC it form feeds to the next page which is wasting labels.

I need to either have VB not generate a top of form command or be able to set the paper size to .875 in the printer properties. Hopefully someone will be able to help me out on this. Thanks.

Bob
 
Darn Bob, it's to bad someone didn't answer this. I am having the exact same problem with Oki ML 320/321 turbos.
 
The Printer object does have a .NewPage method. Have you tried using that?
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Well, here is the deal. I am printing to a great big roll of labels so it is not fanfold, cut sheet or anything like that. Each label is 1 inch in height and literally touch the next label. I don't really want to ever start a new page. Just keep printing row after row of these little labels.

After the first ten rows or so (about the size of a standard sheet of paper by the way) the printer goes crazy, advancing many rows of labels, printing a few characters and advancing many rows of labels, printing some more characters and advancing many rows of labels and on and on and on.

The printer seems to believe it is using single sheets of paper or something instead of continuous feed. Is there some vb constant available to designate continuous feed paper?
 
boreed,
Since your paper size is .875 inches, and the custom paper size only allows for two digit precision, perhaps you could set the paper size to 1.75, which is two labels. Treat each pair of labels as one page.
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
I have set the following properties for the printer programatically:

'Set Printer properties
'Set ScaleMode
'Printer.ScaleMode = vbInches
Printer.ScaleMode = 5
'set font
Printer.FontSize = 10
'Set Print Quality
Printer.PrintQuality = -2 '(-1 to -4, -1 is low -4 is high)
'Set the Paper Type
Printer.PaperBin = 8 'numeric value '8' = vbPRBNTractor
'Set PaperSize
Printer.PaperSize = 39 ' numeric value '39' = bPRPSFanFoldUS

It is still printing one 'letter' sized page and theh advancing (skipping) another 'letter' sized page. Is there a constant to keep it from form feeding?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top