I looked at the sample code, which was written in C#. It has a line of code that says
reportViewer.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(DemoSubreportProcessingEventHandler);
VB.Net does not have a SubreportProcessing property for LocalReport. Is there a similar example using VB.Net I am having trouble getting a subreport to work if it has a dataset associated with it. Thanks.
Set the name ReportName property to be the name of your subreport without the extension, e.g. Report1 not Report1.rdlc.
Note that I have only done this with non-embedded subreports, all my reports are content files that are copied to the output directory (so that minor tweaks can be made without recompilation). It works for those, I think its the same for embedded subreports but dont take my word for it.
I would be happy to, in fact its zipped up and ready, but... to where, your email address isnt on file. Sorry about the delay by the way, been doing other things for a few days. Allen
Anyway you can send me a sample project with this I am doing exactly what you are saying and what has been shown in the sample code but I am still having 0 luck.
The footer displays at the bottom of the page when you print. In the web browser there is no "bottom of the page", so it shows up immediately below the body.
Creating A SubReport
kstephan
M.Ali.Raza
Allen
subsider34
That still doesn't answer the question. Because how do I set what rdlc the sub report is supposed to use when I am in the report designer
Thanks
LadyAmpherion
I looked at the sample code, which was written in C#. It has a line of code that says
reportViewer.LocalReport.SubreportProcessing +=
new SubreportProcessingEventHandler(DemoSubreportProcessingEventHandler);
VB.Net does not have a SubreportProcessing property for LocalReport. Is there a similar example using VB.Net I am having trouble getting a subreport to work if it has a dataset associated with it. Thanks.
Le Quoc Thanh
Thanks
Marni
Note that I have only done this with non-embedded subreports, all my reports are content files that are copied to the output directory (so that minor tweaks can be made without recompilation). It works for those, I think its the same for embedded subreports but dont take my word for it.
Hope this helps
Allen
Dennis Xue
Sorry about the delay by the way, been doing other things for a few days.
Allen
John Fly
Anyway you can send me a sample project with this I am doing exactly what you are saying and what has been shown in the sample code but I am still having 0 luck.
Thanks
Sumit Chawla
The footer displays at the bottom of the page when you print. In the web browser there is no "bottom of the page", so it shows up immediately below the body.
Myrkky