Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Print plain text using Crystal Report 2008

Posted on 2008-10-19
7
Medium Priority
?
534 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
[X]
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
  • 3
  • 2
7 Comments
 
LVL 101

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 101

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 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 22753552
0

Featured Post

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 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