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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fighting the printer again...

Status
Not open for further replies.

zakman

Programmer
Aug 15, 2001
49
US
Funky stuff, that's about all I can say...

I have a simple program that has a textbox and prints it on a selected printer with 3"high x 5"wide label stock.

I tried using the Printer Common Dialog box to select the label printer to use, for some odd reason it always defaults to 1536 copies.

I set the printer's height to 762mm (3"), yet it ignores that and defaults to 8". And to top it off, it will skip down about an inch before it prints...

I am trying to use the Printer object right now. I thought about using PrtDevMode from MS Access, but I can't find reference to that in VB6. I thought about using the Report Designer, but not sure if its worth the effort.

Any ideas? I'll provide more info if you need it, thanks guys and happy holidays!

--Kevin
 
I would use the report designer... I've seen a few threads in this forum that use the designer to print labels... it's worth a shot and you would learn something from it - always a plus!
 
I checked out another discussion involving printing 3x5 labels which is similiar to my problem.

Next problem is that I am now using a data report to generate the label. The report contains one label which I populate in code. The report will not display/print because the datasource is invalid... well, I dont have a datasource for it because I was trying to plug the text in directly. Any ideas?

--Kevin
 
There is a simple illustration of generating a recordset in code then using it for a datareport in one of the MSDN samples directories. It's called Loan.vbp and shows just what you need.

You'll find it at:
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top