simple printing problem? 
Author Message
 simple printing problem?

I bought a copy of VB 3.0 to try it out and see if I like VB. I wrote
several small programs and then I wrote a program  for a small family
rental bussness. It access and saves files, but when I try to print out
what would be a recipt nothing happens with Printer.Print and
Printer.EndDoc. I can get the data to go to a form but not to the
printer. If I use Print.Form then the command buttons print but no text.

I am using windows 95 and I have a designated printer. I tried changing
the AutoRedraw property to both true and false. Is there some stupid
little thing that I am missing.

Steve Frustrated n Florida




Tue, 08 May 2001 03:00:00 GMT  
 simple printing problem?
Steven,
Here are a few lines from one of my programs;
I believe it will give you some idea as how to
do what it is you are trying to do:
_______________________________________________
Dim K As Integer
K = 0
Open Printer.Port For Output As #1
Do Until K = frmPrint.lstPrint.ListCount
If K Mod 27 = 0 Then
Print #1,
Print #1, Space(9) & "Roster of LTDHD Board Members as of:  " &
Format(Date, "Long Date")
Print #1, vbCrLf
Print #1, "NAME:" & Space(18) & "ADDRESS:" & Space(38) & "PHONE:"
Print #1, String(79, 45)
End If
Print #1, LTrim(frmPrint.lstPrint.List(K))
Print #1,
K = K + 1
Loop
Print #1, vbFormFeed
Close #1
_________________________________________________________
Hope it helps,
Cliff

Quote:

> I bought a copy of VB 3.0 to try it out and see if I like VB. I wrote
> several small programs and then I wrote a program  for a small family
> rental bussness. It access and saves files, but when I try to print out
> what would be a recipt nothing happens with Printer.Print and
> Printer.EndDoc. I can get the data to go to a form but not to the
> printer. If I use Print.Form then the command buttons print but no text.

> I am using windows 95 and I have a designated printer. I tried changing
> the AutoRedraw property to both true and false. Is there some stupid
> little thing that I am missing.

> Steve Frustrated n Florida



--
****************************************
ICQ - 16957341
****************************************
If I had to live my life again, I'd make
the same mistakes again--ONLY SOONER!!!!
****************************************
Last night I dreamt I ate a 10 pound
marshmallow, when I woke up my pillow
was gone.
****************************************


Tue, 08 May 2001 03:00:00 GMT  
 simple printing problem?
Printing from VB (any version) is really quite easy. There are, however,
many "bugs" in VB which make printers misbehave (and you can overcome them
all) - but if you are not getting anything at all to print then you are
definitely doing something wrong. Send me some of your code (keep it fairly
simple) and I will make it work and send it back to you with comments.

Mike

Quote:

>I bought a copy of VB 3.0 to try it out and see if I like VB. I wrote
>several small programs and then I wrote a program  for a small family
>rental bussness. It access and saves files, but when I try to print out
>what would be a recipt nothing happens with Printer.Print and
>Printer.EndDoc



Wed, 09 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Simple printing problem

2. Simple Newbie Print Problem

3. Simple print listbox to disk problem!

4. Help with simple VB Printing Problem

5. Simple (?!) printing problem

6. Simple (?!) printing problem

7. Simple Problem....Want to print files as if from Windows Explorer

8. A simple Mail problem in search for a equally simple answer

9. Simple Question: Printing

10. Simple printing with VB.NET?

11. Simple Printing Question

12. Simple question: - Printing to Text Box

 

 
Powered by phpBB® Forum Software