ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 2nd, 2003, 03:23 PM
matogian matogian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 matogian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Crystal Report help please !!!!

Hello, any body can tell me how can I do for generate dynamics crystal reports from an ASP application?
My application generate dynamically queries to a DB and returns de data into a XML format. I have an infinite number of possible responses, and for this reason I can’t define one repot for each possible response. So, I need generate an RPT file dynamically.

Thanks

Reply With Quote
  #2  
Old November 13th, 2003, 11:57 AM
jokos jokos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 4 jokos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This code might be usefull for you

' Determine the index of the table we want to retrieve
indexTable = Session("oClientDoc").Database.Tables.FindByAlias("Employee")

' Retrieve the data fields from the Database Table
' Set dbFields = Session("oClientDoc").Database.Tables.Item(0).DataFields
Set dbFields = Session("oClientDoc").Database.Tables.Item(indexTable).DataFields

' Create a list of the fields we want to add to the report
arrFields = Array("Last Name", "First Name", "Salary")

For Each newField in arrFields

'Determine the index of the database field in the table
indexField = dbFields.Find(newField, 0)

' Add the field to the client document through the ResultFieldContoller object
' -1 specifies to add the field to the end of the ResultFields collection
Session("oClientDoc").DataDefController.ResultFieldController.Add -1, dbFields.Item(indexField)

Next

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Crystal Report help please !!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway