Crystal Report Login Prompt

G

Guest

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.
 
G

Guest

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(ExportFormatType.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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top