hi,
i am getting JavaScript error while adding the <Toolbar>True</Toolbar>
in sql reporting services i have defined the device info as

string devInfo ="<DeviceInfo><Zoom>" + Convert.ToString(_Zoom) + "</Zoom><HTMLFragment>flase</HTMLFragment><Toolbar>true</Toolbar>" + @"<StreamRoot>" + TempPathVirtual + @"\</StreamRoot></DeviceInfo>";
am i doing any thing wrong .
by setting <Toolbar> true i am fetching PageCount the code i have written is :

result = oReport.Render(reportPath, format, historyID, devInfo, parameters, credentials,
showHideToggle, out encoding, out mimeType, out reportHistoryParameters, out warnings,
out streamIDs);

string response=new string(System.Text.Encoding.GetEncoding(1252).GetChars(result));
string val=string.Empty;
int pos=response.IndexOf("var rep = new Report(");
int pos1=-1,pos2=-1;
if(pos>0)
{
pos+=21;
pos1=response.IndexOf(',',pos);
pos2=response.IndexOf(',',pos1+1);
}
int PageCount;
val=response.Substring(pos1+1,(pos2-pos1)-1);
PageCount=int.Parse(val.Trim());

is there any other way to get the page count while <Toolbar> is false? bcz if i make <Toolbar> to true then it throws JavaScript error.

Ur reply would be appreciated.
thx.