shanmugham
Programmer
Dear friends
i have a text file "doc6.txt"
that text file was created through program (fox pro - text file)
i wanted to take the print out thru laser rint
thru the following VB program
=================================================
On Error GoTo error1
bcancel = False
CommonDialog1.Flags = cdlPDHidePrintToFile Or _
cdlPDNoSelection Or _
cdlPDNoPageNums Or _
cdlPDCollate
CommonDialog1.CancelError = True
CommonDialog1.PrinterDefault = True
CommonDialog1.Copies = 1
CommonDialog1.ShowPrinter
If bcancel = False Then
Printer.Print ;
With Printer
.FontName = "Roman"
.FontSize = 10
.FontBold = False
.FontItalic = False
.FontUnderline = False
End With
Dim i1, j, n, k As Integer
TheIndex = 0
Open ("d:\ftp\doc6.txt" For Input As #1
Do Until EOF(1)
Line Input #1, tempstring
Printer.Print ; RTrim(tempstring)
TheIndex = TheIndex + 1
Loop
Close #1
MsgBox "over"
End
End If
Exit Sub
error1:
If Err.Number = cdlCancel Then
bcancel = True
Resume Next
End If
End Sub
=================================================
at the time of printing, the each line alignment was changed, that is
for example input text file as
=================================================
7. CORPUS FUND FOR
EMPLOYEES HEALTH FUND 130
8. CORPUS FUND FOR FAMILY BENEFIT
FUND/GROUP INSURANCE SCHEME 131
9. CORPUS FUND DEATH-CUM-RETIREMENT
GRATUITY 132
======================================================
it prints the following way, i.e. zig zag way
7. CORPUS FUND FOR
EMPLOYEES HEALTH FUND 130
8. CORPUS FUND FOR FAMILY BENEFIT
FUND/GROUP INSURANCE SCHEME 131
9. CORPUS FUND DEATH-CUM-RETIREMENT
GRATUITY 132
======================================================
how can i overcome this problem
thanks in advance
shan
i have a text file "doc6.txt"
that text file was created through program (fox pro - text file)
i wanted to take the print out thru laser rint
thru the following VB program
=================================================
On Error GoTo error1
bcancel = False
CommonDialog1.Flags = cdlPDHidePrintToFile Or _
cdlPDNoSelection Or _
cdlPDNoPageNums Or _
cdlPDCollate
CommonDialog1.CancelError = True
CommonDialog1.PrinterDefault = True
CommonDialog1.Copies = 1
CommonDialog1.ShowPrinter
If bcancel = False Then
Printer.Print ;
With Printer
.FontName = "Roman"
.FontSize = 10
.FontBold = False
.FontItalic = False
.FontUnderline = False
End With
Dim i1, j, n, k As Integer
TheIndex = 0
Open ("d:\ftp\doc6.txt" For Input As #1
Do Until EOF(1)
Line Input #1, tempstring
Printer.Print ; RTrim(tempstring)
TheIndex = TheIndex + 1
Loop
Close #1
MsgBox "over"
End
End If
Exit Sub
error1:
If Err.Number = cdlCancel Then
bcancel = True
Resume Next
End If
End Sub
=================================================
at the time of printing, the each line alignment was changed, that is
for example input text file as
=================================================
7. CORPUS FUND FOR
EMPLOYEES HEALTH FUND 130
8. CORPUS FUND FOR FAMILY BENEFIT
FUND/GROUP INSURANCE SCHEME 131
9. CORPUS FUND DEATH-CUM-RETIREMENT
GRATUITY 132
======================================================
it prints the following way, i.e. zig zag way
7. CORPUS FUND FOR
EMPLOYEES HEALTH FUND 130
8. CORPUS FUND FOR FAMILY BENEFIT
FUND/GROUP INSURANCE SCHEME 131
9. CORPUS FUND DEATH-CUM-RETIREMENT
GRATUITY 132
======================================================
how can i overcome this problem
thanks in advance
shan