Friday, March 9, 2012

Problem when i am using RSClientPrint Active X

Hi ,

I m using rsclientscript in my application..i m using the following code in <script>

function Print()
{
RSClientPrint.MarginLeft = 12.7;
RSClientPrint.MarginTop = 12.7;
RSClientPrint.MarginRight = 12.7;
RSClientPrint.MarginBottom = 12.7;
RSClientPrint.Culture = 1033;
RSClientPrint.UICulture = 9;
RSClientPrint.Print('http://localhost/Reports/Pages/Report.aspx?ItemPath', '=%2fTestMonday%2fSrCorpLogo&CorporationId=2', 'Employee_Sales_Summary')
}
</script>

I m calling this script when user clicks the button in the webpage..

I m getting the dialog box properly..In that if i click preview button i m getting the following error

"An error occured trying to render the report. (0x80004005)"

Please help me out ..Very Urgent Issue..

Thanks in Advance..

Bhoopathi..

I was trying this out just yesterday and got the same problem.

I believe the print control can't find your report on the report server. I fixed my problem by playing with the paths I passed in to the Print function.

Try this... without knowing much about your environment...

* The first argument should be the url of the report server...

* The second argument should be the name of the report along with any report parameters..

I'm assuming by the path you provided in your example you have a folder called TestMonday with a report called SrCorpLogo.

* The third argument should be the name of the report by itself.

RSClientPrint.Print('http://localhost/reportserver', '/TestMonday/SrCorpLogo&CorporationId=2', 'SrCorpLogo')

Plug that in and see what happens. Hope this helps.

|||thnks for ur reply JeffZ....|||I think it's a matter of authentication am searching, i'll post a solution as soon as i can find, if any one has a solution pla don't hesitate to post it

No comments:

Post a Comment