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!

Detecting Internet Explorer and Netscape using ASP and CR Viewer

Status
Not open for further replies.

Jayson

Programmer
Jan 31, 2001
75
US
Hi,

I'm currently using Crystal Reports 7 - SmartViewerJava to output my reports onto the web. But i notice that it is very slow. I want to use SmartViewerActiveX, but i read on the Seagate Website that, CR 7 SmarViewerJava, doesn't not support ActiveX, is there a way for me to code in ASP, in such a way that my website would detect whether the user is using Internet Explorer or Netscape? then use that information to output my crystal report using either SmartViewerActiveX or SmartViewerJava depending on the user's browser?

Thanks for any help!
 
Jayson: There is a way to do this - just can't find it at the moment. Suggest you post this as a more general question of how to detect the browser and post it in the Microsoft Active Server Pages forum David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
<%
set oClientBrowser = Server.CreateObject(&quot;MSWC.BrowserType&quot;)
if oClientBrowser.Browser= &quot;IE&quot; then
%>
<!-- #include file=&quot;SmartViewerActiveX.asp&quot; -->
<%
else
%>
<!-- #include file=&quot;SmartViewerJava.asp&quot; -->
<%
end if
%>

Hope this'll help.
 
Thanks for the help guys!

That really did the trick! Owe you one!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top