 |
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

March 22nd, 2005, 01:34 PM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Printing Report on Dot Matrix Printer
hi all
i want to print my crystal report on a dot matrix printer.
my report is actually a Bar Bill, its short but the printer skips the whole A4 Page after printing 1 Bill.
i want tht printer shud stop after printing and then it shud start printing next Bill right from whr it stopped
plz help
Ashu
|
The Following User Says Thank You to ashu_from_india For This Useful Post:
|
|

March 23rd, 2005, 08:13 AM
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Check the property of grouping by Bill_No, there will be option that to start with fresh page for every change in Bill_No.
Are you able to manage printing currently with Dotmatrix or not?
If not contact thru Y! IM I can help you to setup the printer tooo.
Gokulan Ethiraj
|

March 26th, 2005, 02:35 AM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
i hv grouped by BillNo. thst not a prob
the prob is tht when i give the print command through code, the bill gets printed and then the printer skips the full page. my client is using dot matrix printer with Roll Feed
|

March 28th, 2005, 12:36 AM
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Did you have chance to Check BillNo properties, start with fresh page for every change in Bill_No.
Gokulan Ethiraj
|

March 30th, 2005, 05:09 AM
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mr. Gokul, you are not understanding the problem. It has nothing to do with the grouping or any other property. It is windows which is causing problem. Even if you print a single line of text prepared in notepad, it will be printed in GUI mode and the paper will be pushed off.
What we want to know is, how to override windows' control and print text in character mode. If you remember printing in Foxpro or dBase, that's how we want it to be.
Can you help us out?
|

March 31st, 2005, 05:25 AM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
hi prasadgvl
u hv hit the nail on the head
when i print the same report through a .BAT file it works fine, but when i print it using crystal report, the whole page is skiped :(
is thr any method in .NET to export the report in .TXT format
we used to have it in VB6
plz help me
thanx in advance
|

March 31st, 2005, 05:41 AM
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Ashu,
After spending considerable time searching on the same topic, I came across a code snippet posted by a guy somewhere. He claims that the code snippet could get the job done. Since I have no dot-matrix printer in place, I couldnt get my hands wet with it. Here is the snippet:
' Pass the File Name
Sub Prnt_2_Port(FName As String)
Open FName For Input As #1
'Since the Printer might be connected to LPT1 or LPT2 it
'had been changed to Printer.Port - KSM (21/11/2002)
'On Error GoTo To_NPrint
Open Printer.Port For Output As #2
StrToPrint = ""
While Not EOF(1)
Line Input #1, StrToPrint
If Right(StrToPrnt, 1) = " " Then StrToPrnt = Mid(StrToPrnt, 1, Len(StrToPrnt) - 1)
Print #2, StrToPrint
Wend
Close #2
Close #1
Exit Sub
Try it out and let me know how it went. Good luck!!
|

March 31st, 2005, 12:02 PM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
hi prasadgvl
actually i have a Crystal Report file
if i use this code then, it will print Control Characters also.
I want a code to export Crystal Report file to a Text File
Thr was an option with VB6, but thr is not any in VB.NET
i hope u understand
Ashu
|

April 6th, 2005, 06:56 AM
|
Registered User
|
|
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Ashu,
You could try creating a custom user fomr on the Print Server. From the Printers Folder, select File, Server Properties.
From the Forms Tab you can create a custom made form to suit your requirements. You might need to play about with the measurements but it'll get there in the end.
Regards
Andrew
|

April 8th, 2005, 01:17 AM
|
Registered User
|
|
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi friends,
i need help from u guys
i want to print the bill in the receipt format
my receipt size is 8x6 inches
but it is taking A4 size
i want to print it in dotmatrix printer.this is a web form
i did my project in asp.net.
help me if any know the result for this .
please give me the solution as soon as possible.
regards
Srisainath
very urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
 |