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
elton_wang@hotmail.com
"CBKowitz" wrote:
[color=blue]
> 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.[/color]