Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Toggle Group Tree button

Status
Not open for further replies.

cestonina

Programmer
May 25, 2003
30
SG
Hi,

I created a web site for my Crystal Reports via CE8.0 Web Publishing wizard. What I would want is when I access these reports, the window would be automatically be maximize.

I have checked reports.csp file, and found this piece of code,

<script language=Javascript>
function ShowReport(id,token)
{
windowprops=&quot;height=450,width=600,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes&quot;;

reportWindow = window.open(&quot;viewrpt.cwr?id=&quot; + id + &quot;&apstoken=&quot; + escape(token) +&quot;&init=&quot;+escape(':connect'),&quot;rptWindow&quot;,windowprops);
}

What parameter would I change in this code in order for the window size be maximized? I know it should be in windowprops, but I just don't know the exact command to replace height/width.

Also, I was hoping to disable the Toggle Group Tree button in Crystal Window (by default its enabled). Again what and which parameter should I change?

Appreciate any help regarding this matter. Thanks.

Regards,
Topy
 
Thanks, it sure did help. :)

Last question though for the displaygroup tree button. I cannot seem to find the file viewreport.csp. Is it generated by CE8.0 Web Pub Wizard when you create a new web site? Should it be located in intepub\ (default for my site)?

Thanks again for your help.

Regards,
Topy
 
try this folder:
program files\crystal decisionsweb content\enterprise9\websamples\en\database

If it's not there, you can try searching your machine.
 
Oh, I see its for Crystal Enterise 9.0.

Thanks again, I'll just find the counterpart of this file in CE8.0.

Last question, if I change the viewreport.csp file found in

program files\crystal decisionsweb content\enterprise9\websamples\en\database

Will it affect other report viewer for other web sites. You see, I have created another web site hosting other reports which needs the grouptree button enabled.

Hope I may not be too bothersome for you :)
Thanks for all the help.

Regards,
Topy
 
Forgot you were on 8; there should be a corresponding file for 8. Yes, other web sites could be relying on it. You can make a copy of it and/or move it and just make sure you change your website's references to it to reflect the change.
Search your website pages/files for references to that path or filename and change them accordingly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top