Solved

Export : Paginated Text Format - does not give correct number of Lines per Page & Correct Format

Posted on 2004-08-07
8
1,069 Views
Last Modified: 2008-02-01
Hi, I am using CR8.5, VB6 & Crystal32.OCX. My clients want to print Invoices on good old DOT MATRIX PRINTERs using DOS (TEXT) Based Printing since that is extremely Fast comparing to Windows Graphic Mode Printing. I created a report - designing it becomes really tough - since exporting to TEXT does not print it on the same location as it is shown - so my first question is - is there any FONT thru which it prints the same way it shows on the screen when EXPORTED to Text and next problem is that number of lines per page are not same - i.e. for german standard fanfold stationery 8.5*12" (it should print 72 lines exactly per page), it does'nt - even if I mention crystal1.linesperpage=72.
Since it is a pre-printed invoice - there are some page header & some page footer sections which need to be suppressed using formulas, in windows printing they get suppressed when exported they get printed.
In fact - my Report Prints beautifully directly but when exported - the problems occur.

Or is there any other way out so that I can Print my Crystal Report's Output Using TEXT Mode Printing.

I have uploaded all the latest monthly Hot Fix from C.R. web site.

0
Comment
Question by:springtimesoftware
8 Comments
 
LVL 28

Expert Comment

by:bdreed35
ID: 11742972
First thing I would do is use a font like Courier New.  Each letter will take up exactly the same space in Crystal as it will when you exxport it to text.

You should be able to conditionally suppress sections in Crystal and have it carry over to the exported file.  Try posting more specifics as to how you are suppressing, and what kind of formula you are using.

One more thing, if I remember right, the lines per page is controlled during the export using the paginated text export.  I would try doing an export from within the Crystal Reports Designer, and you should see what I am talking about.  If you don't see it, there is a registry setting that will allow you to be prompted for the number of lines per page.  If you need the registry key, let me know and I will find it for you.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11743568
You might look at this for printing help

http://support.businessobjects.com/communityCS/TechnicalPapers/scrprinterdependency.pdf.asp

I know Crystal doesn't work well with dot matrix printers.  One thing to do is use only fonts native to the printer and no graphics.

Here is another idea
http://support.businessobjects.com/library/kbase/articles/c2002089.asp

mlmcc
0
 
LVL 1

Author Comment

by:springtimesoftware
ID: 11880123
Thanx for the help.

the formula for suppressing the section (pagefooter section) which i hv used is : pagenumber <> pagecount (i do not want the page footer section to be printed on last page), but while printing, report does not print footer on first page and does print footer on the last page.

i have given the lines - crystalreport1.linesperpage=72 even then it never exactly prints the same no. of lines, lines given in page footer section are not counted in the lines - why?

i will check up creating a report using generic text printer, using native fonts before i add my comment next time.

- is there any other simpler way out so that I can Print my Crystal Report's Output Using TEXT Mode Printing or r u aware of any other similar reporting tools which allow to design and print  text based reports


0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 100

Accepted Solution

by:
mlmcc earned 160 total points
ID: 11887934
Try suppression as either
NOT LastPage
or
Not LastRecord

mlmcc
0
 
LVL 26

Assisted Solution

by:Kurt Reinhardt
Kurt Reinhardt earned 160 total points
ID: 11917951
In order to print to Paginated Text, there are several steps you should take:

1)  Set the font for all fields to Courier (not New or Western, just Courier).  Courier is a fixed-width font.  New and Western are not.  If you don't have this font available, then install a printer (it can be virtual, for the sake of paginating the document) that supports the font.  Like mlmcc said, try installing the printer to which the report will be printed.

2)  Paginated Text exporting only supports text.  It also doesn't support formatting.  Remove all bolds, underlines, italics, graphics, etc...

3)  Set the Characters Per Inch to 12.  When you export the report, you should be given this option.  If you aren't, then you need to check your registry for the following keys:

HKEY_CURRENT_USER\Software\Seagate Software\Crystal Reports\Export\TextExport\CharPerInch (REG_DWORD with a Hex value of C)
HKEY_CURRENT_USER\Software\Seagate Software\Crystal Reports\Export\TextExport\PromptAgain (REG_DWORD with a Hex value of 1)

4)  Remove all margins - they are irrelevent when exporting to paginated text

5)  Since the font is fixed width, you can resize the font to exactly the number of characters required per field.

6)  Suppress all extraneous sections.  Fit all other sections to remove spacing issues, which is most likely causing your problem with creeping.

Hope this helps,

Kurt
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 12103281
I would prefer split points.  mlmcc makes some valid comments, but I'm the only one that provided any significant detail to this issue.

~Kurt
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now