By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

Crystal Report Login Prompt

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.