Solved

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

Posted on 2007-12-05
4
634 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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: …

771 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