| Invert |
Phil Lawrence
01/27/2010 07:24
Sub Reports with Parameters not working
We have existings reports that we now wanting to display in your control. Minor modifications have been made to get around the issue of visibility not working and the need for cleaner border definitions. Else you get dashes in the viewing frame everywhere. Now my issue:
If I try and pass parameters into any subreport I always get
'The remote server returned an error: NotFound.'
I'm able to display a dummy subreport that doesn't accept any parameters. Any ideas of what my issue my be or how I can obtain more error information other than the basic 'Not Found' error.
We're using version v2.0.50727
Any help would be fantastic as I've spent too long redeploying etc.
Regards
Phil..
|
Vlad Nekrasov
02/03/2010 04:18
Sub Reports with Parameters not working
Hello,
When you use in your report SubReport element referred to another report with parameters,
it’s necessary to define actual values of parameters.
I mean you should set Parameters property for SubReport element.
I think it’s the main reason of this.
Parameters in SubReport work correctly, you can check this one more time.
But these parameters won’t be asked in dialog of parameters of the basic report.
If this meets your requirements, you should add parameter in the basic report and redirect the value of parameter in SubReport by Parametrs property.
You can view the full description of the error by the following way.
Add a folder named "Log" with the rights on record in the project of your server.
Run your project, the errors must be added to Log\log.txt folder.
View the reason. If anything isn’t clear, send us log of the error.
Best regards,
Vlad Nekrasov
Perpetuum Software Team
|
Phil Lawrence
02/04/2010 02:20
Sub Reports with Parameters not working
Thanks for the info on how to log errors in log.txt. This helped me identify the actual problem. Nothing to do with SubReports but actually the ReportItems collection.
Error:
The expression referenced a non-existing reportitem in the reportitems collection.
Hidden Property on a text box set to:
=IIf(Globals!PageNumber = 1, True, IIf(Globals!TotalPages = Globals!PageNumber, True, Code.IsVisible(ReportItems)))
But even if I just code the IsVisible to return false it doesn't like it.
Public Function IsVisible(Items as ReportItems) As Boolean
Dim result as Boolean
Return True
End Function
Is this a known issue? I'm now going to try and render straight to PDF to see if it's an issue with the control.
Thanks for your help.
Regards
Phil..
|
Vlad Nekrasov
02/10/2010 21:17
Sub Reports with Parameters not working
Hello,
I’m sorry but it’s very difficult to find the exact reason of this problem. The work of sub reports was checked. Everything worked correctly.
I don’t think that this is the reason of the problem. And if the problem is both in parameters and subreport, it may be only under some specified conditions.
It will be really better to check your report by exporting it to another format or just by displaying it in standard viewer.
In this case we’ll make sure that the problem is in our product.
If it is so, send us the template of your document or the sample of the project in order to let us repeat this bug. We checked everything what we could according to your description – everything worked correctly. So we don’t know the real reasons of your problem.
Best regards,
Vlad Nekrasov
Perpetuum Software Team
|
Phil Lawrence
02/18/2010 05:37
Sub Reports with Parameters not working
The issue is definitely related to accessing/referring to ReportItems. We do this for items in the headers. I've got around the problem by removing this code. The only reason we had this was due to the need to display them on our website.
Regards
Phil..
|