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

Printing to a DotMatrix Printer

Status
Not open for further replies.

mattyboy2000

Programmer
Jul 31, 2002
129
GB
Does anyone know where I should start on creating a Crystal Report (.NET) to be printed on a dot matrix printer??

Any comments will be greatfully recieved


Matt
 
You create Dot-Matrix reports in Crystal like you would for any other type of printer. Just go sparingly on graphics, and keep your fonts to those embedded within the printer. You need to define the printer to your system before you create the report, that's it. Tell us more if your questions are more specific.
 
Thats cool. BUT I have to print on a preprinted continious form, that is 4 inches high. Any ideas how to tell crystal (.NET) how high the document is??
 
When you set up the printer in the document, it should see what type of paper that you are using, and make your reporting area fit.
 
While you have your report open for editing, click on File, Printer Setup and define your paper settings right there and save the report. It will retain those settings.
 
Your help has be great so far. EVERYTHING has worked great

I'm using the following code to print:

CrystTicket.PrintToPrinter(1, False, 0, 0)

It prints each report directly after the other (which is what I want). The problem is that the top cm of each document is cut off!

I've fiddled and fiddled but I can't get that cm back

Hope you have some ideas

Matt
 
Hi,
> I have developed some reports in Crystal 9 that needs to be printed from
> VB.NET & also from VB on a Dot matrix on the network continous runninf
> stationary.
> Nothing gets printed on paper when my print command is fired, although the printer shows a completed status. I am able to print test page successfully from my machine to the same printer.
>
> Can you please tell me the steps I need to follow to enable the printing on dotmatrix from Crystal 9?
>
> The dotmatrix printer being used is
> Epson LQ-870
> Font=Roman 12 CPI

I have embedded my dot net code below :

Dim oRpt As ReportDocument
Cursor.Current = Cursors.WaitCursor

oRpt = New ReportDocument

oRpt.Load(Application.StartupPath & "\" & "Reports\" & "rptDeliveryNote_DotMatrix.rpt")

With CrystalReportViewer1
.RefreshReport()
''.SelectionFormula = strFilters
.ReportSource = oRpt
.RefreshReport()
End With

>
> Your help will be very valuable
>
> Regards
> Ajitha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top