I am completely new to this and trying to take over our intranet. We have an aspx page that is called when a submit button is clicked that should open a crystal report. This is the code on the page:
Everything works fine except it prompts for a login to the database after the button is clicked. Is it possible to hard code a login and password within this code?
None
0 Points
1 Post
opening crystal report from intranet prompts for a login
Sep 12, 2007 02:58 PM|kellyfed|LINK
I am completely new to this and trying to take over our intranet. We have an aspx page that is called when a submit button is clicked that should open a crystal report. This is the code on the page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="1.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Report</title>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
Height="991px" ReportSourceID="CrystalReportSourcesite4" Width="845px" />
<CR:CrystalReportSource ID="CrystalReportSourcesite4" runat="server">
<Report FileName="C:\Inetpub\wwwroot\crystal2\CCIntranetJobPhoneList.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
Everything works fine except it prompts for a login to the database after the button is clicked. Is it possible to hard code a login and password within this code?
Thanks!
Member
462 Points
318 Posts
Re: opening crystal report from intranet prompts for a login
Sep 12, 2007 03:30 PM|mcp111|LINK
If you point the rpt to an odbc dsn, then it should not prompt.
Partha Mandayam
CEO, Mandayams Inc
http://fb.me/mcp111
Consulting Expert at Zintro
https://www.zintro.com/profile/parthasarathy-mandayam
http://partha.tripod.com
http://weblogs.asp.net/pmandayam