|
-
Nov 25th, 2009, 01:44 AM
#1
Thread Starter
Fanatic Member
-
Nov 28th, 2009, 01:52 PM
#2
Re: crystal reports on dot matrix printer
The best way I've found to print from a dot matrix in VB is to print directly to "LPT1", like
Code:
Dim nLn%
Open "Lpt1" For Output As #1
With adoGlmast.Recordset
If .RecordCount Then
.MoveFirst
End If
nLn = 99
Do While Not .EOF
If nLn <> 99 Then
Print #1, Chr(12)
nLn = 0
Else
nLn = 0
End If
Print #1,
Print #1, ""
Print #1, "TESTING"
Print #1, ""
Print #1, Plns("GENERAL LEDGER CHART OF ACCOUNTS")
Print #1, ""
Print #1, Plns(Date)
Print #1, ""
Print #1, ""
Do While nLn < 50
Print #1, Spc(20); !glacct + " " + !gltitle
.MoveNext
nLn = nLn + 1
If .EOF Then
Exit Do
End If
Loop
Loop
Print #1, Chr(12)
End With
Close #1
Good Luck
-
Nov 28th, 2009, 03:03 PM
#3
Re: crystal reports on dot matrix printer
Check the printer configuration in Start / Printers & Faxes / YourPrinter
1 Maybe your printer is slow
2 Maybe the printer driver is not the adecuate
3 Maybe you are printing bold case everything
4 maybe you are printing high quality
5 and so on...
-
Dec 2nd, 2009, 04:47 PM
#4
Fanatic Member
Re: crystal reports on dot matrix printer
Printing from Crystal Reports to a dot matrix is going to be slow. From what I have found, there is no way around that if you want to use Crystal Reports.
If you are using VB6, the post from wes4dbt is the way to go. If you are using .Net, then you will want to look at http://support.microsoft.com/kb/322090.
My.Settings.Signature = String.Empty
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|