Solved

Print plain text using Crystal Report 2008

Posted on 2008-10-19
7
530 Views
Last Modified: 2012-05-05
In my .net vb programs I store large amounts of plain text data in specific directories. I need some sample code written in .net vb 2008 that will allow me to print this data using Crytal Reports  2008's  formatting.
This is what I require :-

1)      How do I create a Crystal Report  that has a header that consist of page number and date. In the body of the report the code should insert the text I have stored in a specific directory from my .net vb program.

2)      Once the above report is created I need a sample of code that will allow me to utilize the above report from .net vb.

Basically I need a crystal report so that when I do print my text (no matter how large this may be) it will be formatted with a header on each page . .

Thanking you in advance

0
Comment
Question by:BASit Bulbulia
  • 3
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22753096
To the best of my knowledge you can't do it in the .Net version of Crystal.

mlmcc
0
 

Author Comment

by:BASit Bulbulia
ID: 22753138
Thanks for the prompt reply .  . .

Would there be a workaround to this?  

I do have Crystal Reports 2008 and have created reports using a CSV connection (ADO.net) ; but these reports were using columnar data . . .


0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22753378
In your case it might be that you have a single column and can use the file as the source.

How large are the files?

If they are less than a page, you might be able to use an OLE object.

mlmcc
0
 

Author Comment

by:BASit Bulbulia
ID: 22753397
What I have done is created a ODBC connection to the text file and have also created the crystal report . .

Now what I need is some code to open this report in .net VB ; the name of the report is test.rpt and it's in a directory called \compu.

My data is about 100 pages or more . .
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22753552
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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