Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Print plain text using Crystal Report 2008

Posted on 2008-10-19
7
529 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

829 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