Solved

how to create a Crystal report on the fly base on a datatable

Posted on 2007-12-05
4
639 Views
Last Modified: 2008-02-01
hi there,
how can i create a crystal report on the fly base on a datatable it gets create once certain criterias are met?

thanks.
0
Comment
Question by:jsctechy
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 20416907
Crystal doesn't work well on the fly.  Also depending on how you do this, it may require each user to have a copy of Crystal or at the very least a full runtime license.

Will the fields of the datatabs\le be known in advance so you could create the report?

Will the datatypes of the fields be known?

mlmcc
0
 
LVL 1

Author Comment

by:jsctechy
ID: 20417003
see thats the thing i'm creating a tmptable for this procedure but i dont know whats going to happend it two users are trying to create this table at the same time!

so that is the main reason to have the Crystal report on the fly.

when im creating my table i have these calls:
recordset.ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic
and
ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic

i guess this will lock the table while is been creating am i right?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 20417026
That or somehow add something to the temp table name so each user gets his own table.

mlmcc
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 20417042
or add a column and fill it with the username. crystal can then filter on this column.

another option would be to pass a dataset to CR instead of having it connecting to the database. see http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

16 Experts available now in Live!

Get 1:1 Help Now