SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Subreport with uniqueidentifier or guid parameter


Subreport with uniqueidentifier or guid parameter

Author
Message
Frank Cazabon
Frank Cazabon
SSC Eights!
SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)

Group: General Forum Members
Points: 816 Visits: 184
Hi,

I am adding a subreport to a report and I need to pass a uniqueidentifier or Guid to the subreport. However the subreport only allows me to specify the parameter as text/boolean/Detatime/integer/float.

If I use Text, I get th esubreport stating "Data retrieval failed".

What do I need to do?
Frank Cazabon
Frank Cazabon
SSC Eights!
SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)

Group: General Forum Members
Points: 816 Visits: 184
Has this never been done before?

Frank Cazabon (2/26/2013)
Hi,

I am adding a subreport to a report and I need to pass a uniqueidentifier or Guid to the subreport. However the subreport only allows me to specify the parameter as text/boolean/Detatime/integer/float.

If I use Text, I get th esubreport stating "Data retrieval failed".

What do I need to do?

dohnfors
dohnfors
SSC-Enthusiastic
SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)

Group: General Forum Members
Points: 118 Visits: 188
http://www.developmentnow.com/g/115_2005_4_0_0_457409/Passing-unique-identifiers-to-subreports.htm
Frank Cazabon
Frank Cazabon
SSC Eights!
SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)

Group: General Forum Members
Points: 816 Visits: 184
Thanks, I'll see if I can get that to work
Frank Cazabon
Frank Cazabon
SSC Eights!
SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)

Group: General Forum Members
Points: 816 Visits: 184
dohnfors (3/14/2013)
http://www.developmentnow.com/g/115_2005_4_0_0_457409/Passing-unique-identifiers-to-subreports.htm


Unfortunately I'm still not getting it.

I am using Visual Studio 2010 and have created an RDLC main report and subreport.

Can you recommend a good walk through or book for subreports that I could follow? Everything I am finding refers to menu options or tabs that I am not seeing in my Report
dohnfors
dohnfors
SSC-Enthusiastic
SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)

Group: General Forum Members
Points: 118 Visits: 188
http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/da0d5e37-cb79-456c-9097-6e3c16a7ef3e
Frank Cazabon
Frank Cazabon
SSC Eights!
SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)SSC Eights! (816 reputation)

Group: General Forum Members
Points: 816 Visits: 184
Thanks I had actually found a book and bought it hoping that it would help me despite it being for VS 2005 and thankfully it did.

This is the book:

http://www.amazon.com/gp/product/1590598547/ref=s9_psimh_gw_p14_d1_i1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-2&pf_rd_r=1V9E17C7MPDBS0QRD1KB&pf_rd_t=101&pf_rd_p=1389517282&pf_rd_i=507846

It explained to me that I needed to have the all the data needed for the master and for the detail in my dataset which I had not found anywhere else. It also showed me the type of code necessary to handle the subreport processing and I was able to adjust this to speed up the extremely slow subreport so that I actually filter the data appropriately on each subreport in code rather than loading the entire dataset for the subreport and letting the report filter it based on the filter set on the tablix.

Thanks for your help.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search