K
Kuldeep
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an in-built tool to generate PDF Reports.
Once a PDF Report is generated, I have provided an option of "Viewing" the
PDF as well.
Now, once there is a large PDF being generated (say a PDF of 70 Pages or so)
and I try to "View" the PDF then it fails to do so.
The reason being, my code is actually trying to view a PDF File which is
still in the "building" stage and not a completely "built" PDF.
How do I programmatically put a delay into my code so that the process of
"Viewing" the PDF doesnot hang and show the PDF file successfully.
Here is what I have at present to "View" the PDF.
protected void lnkViewPdf_Click(object sender, EventArgs e)
{
string jScript;
jScript = "<script>window.open('" +
Request.ApplicationPath.ToString().ToLower() + stringPDFUrl +
"','','','')</script>";
Page.RegisterClientScriptBlock("keyClientBlock", jScript);
lnkViewPdf.Visible = false;
}
Please help me how would I tweak the code so that there is a delay while
"Viewing the PDF" just after the PDF is generated.
Any leads on this would be very helpful.
Thanks in advance,
Kuldeep
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an in-built tool to generate PDF Reports.
Once a PDF Report is generated, I have provided an option of "Viewing" the
PDF as well.
Now, once there is a large PDF being generated (say a PDF of 70 Pages or so)
and I try to "View" the PDF then it fails to do so.
The reason being, my code is actually trying to view a PDF File which is
still in the "building" stage and not a completely "built" PDF.
How do I programmatically put a delay into my code so that the process of
"Viewing" the PDF doesnot hang and show the PDF file successfully.
Here is what I have at present to "View" the PDF.
protected void lnkViewPdf_Click(object sender, EventArgs e)
{
string jScript;
jScript = "<script>window.open('" +
Request.ApplicationPath.ToString().ToLower() + stringPDFUrl +
"','','','')</script>";
Page.RegisterClientScriptBlock("keyClientBlock", jScript);
lnkViewPdf.Visible = false;
}
Please help me how would I tweak the code so that there is a delay while
"Viewing the PDF" just after the PDF is generated.
Any leads on this would be very helpful.
Thanks in advance,
Kuldeep