472,783 Members | 888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 software developers and data experts.

Crystal Report Login Prompt

I have an intermittent problem, when viewing a crystal report. This problem
only happens to some users and some report formats. When they try to view
the report in Microsoft Word format the system prompts them to login (User
name and Password). If they view it in PDF format they do not get the login
prompt. I do not get the login prompt at all. This problem occurs with
users on the Internet and our Intranet. I checked the web site and the
exported (from crystal reports) is in the directory. So Crystal Reports is
accessing the data, generating the report and exporting the report to MS Word
format.
Nov 19 '05 #1
1 3197
Hi there,

It seems you are exporting physical files. Actually you don’t have to create
these physical report files, unless you need to keep these files. You can
export stream and write stream content to page:

Response.Clear();
Response.Charset = string.Empty;
Response.Buffer = true;
Response.AddHeader("content-disposition", "inline; filename=fileName");
Response.ContentType = "Application/pdf"; // "Application/msword"
// Create CrReport
MemoryStream memStream =
(MemoryStream)CrReport.ExportToStream(ExportFormat Type.PortableDocFormat);
Response.BinaryWrite(memStream.ToArray());
memStream.Close();
Response.End();

If you really need to do physical files, to check the security setting of
folder of generated files.

HTH

Elton Wang
el********@hotmail.com
"CBKowitz" wrote:
I have an intermittent problem, when viewing a crystal report. This problem
only happens to some users and some report formats. When they try to view
the report in Microsoft Word format the system prompts them to login (User
name and Password). If they view it in PDF format they do not get the login
prompt. I do not get the login prompt at all. This problem occurs with
users on the Internet and our Intranet. I checked the web site and the
exported (from crystal reports) is in the directory. So Crystal Reports is
accessing the data, generating the report and exporting the report to MS Word
format.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bob Rosen | last post by:
Based on the information I have now, the answer would seem to be No. Does anyone have information to the contrary? Here's the problem. On my first attempt to display a report, Crystal...
1
by: Kevin | last post by:
I'm at the end of my rope. We have been trying to deploy Crystal Reports over our website. We have tried every report configuration we can think of and cannot seem to resolve this issue. Here is...
1
by: jeremylim2000 | last post by:
Hi! I try to preview a crystal report using asp, it prompt 'CRAXDRT error Occured on server. -2147189176 : logi failed' Details : IM002 : Data sourcename no found and no default driver...
0
by: Meral Agceli via .NET 247 | last post by:
A crystal report is developed using Crystal 8.5 and a trustedconnection to a SQL Server database. I'm trying to display thisreport in Crystal Report Viewer using VB.NET. When theapplication is run, I...
0
by: Chris | last post by:
Hello, I'm new to Crystal Reports and I am having a problem with a login box showing up when I try to view a report in the report viewer. I have found the following code, listed below, to...
1
by: codepuller | last post by:
Consider this approach: Embed the report in your project (add it to the project) Then put this code in the page that holds the viewer control 'Set the connection information...
12
by: Murali via DotNetMonster.com | last post by:
Hi All I am new to .net, as i worked majorily on VB6.0 & Crystal reports, I have developed an Window application in VB.net/SQL Server2000 and using Crystal reports8.5, I have used the CRViewer in...
4
by: serge calderara | last post by:
Dear all I am not able to set the PAssword field of a tables logInfo structure ??? I do it as follow : For Each crTable In rptDoc.Database.Tables crReportTabeLoginfo = crTable.LogOnInfo...
0
by: dassubrata19976 | last post by:
Hi, I am writing an ASP.net application which uses Crystal Report XI.I am using SQL Server database as backend.In design time only I am providing the database login credentials while creating the...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.