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 November 12th, 2003, 05:16 PM
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
Question ASP Crystal Report - Passing ADO Recordset to Subreport

Does anyone know how to pass an ADO recordset to Crystal report for subreport?
I was able to pass ADO recordset for main report but have no idea how to do the same for subreport

Here's the code that i used for passing ADO recordset for Main report:
Session("oClientDoc").DatabaseController.setDataSource session("oRs"), Session("oClientDoc").Database.Tables.Item(0).Alias, "ADORecordset"

I tried to use code below but it didn't work
Session("oClientDoc").SubReportController.setDataSource session("oSubRs"), Session("oClientDoc").SubreportController.GetSubreportDatabase.Tables(0).Alias, "ADORecordset"

Thanks for your help

Reply With Quote
  #2  
Old November 13th, 2003, 11:50 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
I figured the way to pass ADO recordset to subreport.
i just want to share with all of you guys..
Here's the correct code

Session("oClientDoc").SubReportController.setDataSource "SubReport.rpt", session("oSubRs"), Session("oClientDoc").Database.Tables.Item(0).Alias, "ADORecordset"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP Crystal Report - Passing ADO Recordset to Subreport


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 2 hosted by Hostway
Stay green...Green IT