Solved

Print plain text using Crystal Report 2008

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

15 Experts available now in Live!

Get 1:1 Help Now