Solved

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

Posted on 2007-12-05
4
641 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 70

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use odbc in vb to connect to ms sql 14 54
Allow user to hide and show datagridview columns 4 28
Store results in vb.net 3 22
Footer for each row on Gridview 2 21
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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