Solved

Print plain text using Crystal Report 2008

Posted on 2008-10-19
7
526 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

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

17 Experts available now in Live!

Get 1:1 Help Now