Open a "Generated" PDF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: how to print pdf with python on a inkjet printer.
    ... to create pdf reports for printing. ... I am not using py--qt or wx python. ... Printing is more complicated, because you actually need something that can ...
    (comp.lang.python)
  • Re: OT: Netiquette and Programatically Emailling Attachments
    ... Stephen Lebans has a free solution to creating PDF reports. ... A2000ReportToPDF is an Access 2000 database containing a function to convert Reports ...
    (comp.databases.ms-access)
  • Re: Saving PDF files in Access
    ... Why not refer to the PDF's location instead? ... Just create a PDF folder, give a unique name to the files, create a text ... We have a lot of PDF reports that come from other companies, ...
    (microsoft.public.access.reports)
  • Re: Open a "Generated" PDF
    ... instead of opening the pdf directly, open an asp.net page that delays until the pdf is built then redirects to it. ... 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. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Quark 6.1
    ... A5 pages so we were viewing in Landscape across an A4 page). ... not getting the bleed marks? ... We have printed to a pdf and chosen Bleed Asymetric with 3mm on all sides. ... relevant but I am using QuarkXPress Passport 6.1. ...
    (comp.publish.prepress)