Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 193315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:30:00+00:00 2026-05-11T16:30:00+00:00

I have a classic asp page which generates a PDF serves it to the

  • 0

I have a classic asp page which generates a PDF serves it to the browser. What I would like to do is have a loading page which loads the PDF in the background before serving it to the browser when this is complete, essentially adding a nice page indicating to the user that something is happening.

I have looked at things like the Yahoo progress bar but I didn’t see any way of then serving the pdf up.

Anybody have any suggestions? I’m sure this must have been done before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:30:00+00:00Added an answer on May 11, 2026 at 4:30 pm

    I found a solution for this situation that uses iframes. It’s not classic asp, but I don’t see why it wouldn’t work. Here’s the article I found.

    EDIT: added code.

    Container page called by your application:

    <head runat="server">
        <script language="javascript" type="text/javascript">
            function BuildPDF() {
                var iframe = document.createElement("iframe");
                iframe.src = "BuildPDF.asp?" + <whatever args you need>;
                iframe.style.display = "none";
                document.body.appendChild(iframe);
            }
    
            function UpdateProgress(message) {
                document.getElementById('txtStatus').value = message;
            }
    
            function SetDisplayFileName(fileName) {
                var viewFrame = document.createElement("iframe");
                viewFrame.id = "viewFrame";
                viewFrame.src = "WhateverTheNameOfYourPDFViewASPPageAndArgs";
                viewFrame.style.width = '100%';
                viewFrame.style.height = document.documentElement.clientHeight - 20;
                document.body.appendChild(viewFrame);
            }
    
            function ResizeFrame() {
                var viewFrame = document.getElementById("viewFrame");
                viewFrame.style.height = document.documentElement.clientHeight - 20;
            }
        </script>
    </head>
    <body onload="BuildPDF();" onresize="ResizeFrame();">
        <form id="form1" runat="server">
        <input type="text" id="txtStatus" style="width:80%; font-family: Tahoma, Verdana; font-size: small; font-weight: bold;" readonly="readonly" />
        <br />    
        </form>
    </body>
    

    Then, somewhere in your BuildPDF.asp, you have a function something like this that you can call anytime you want to update the status message:

    function UpdateProgress(message)
        Response.Write("<script>parent.UpdateProgress('" & message & "');</script>")
        Response.Flush()
    end function
    

    The page you have referenced in the “viewFrame” is your page that streams the ContentType “application/pdf.” Again, I did this in ASP.Net, but I see no reason why it wouldn’t work in classic ASP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select box on a classic ASP page which looks like this:
I have a classic ASP page which is loading an ASP.net page through an
I have a 3rd party server which has a classic ASP page which takes
I am writing a small application in Classic ASP. I have a page which
I have a classic asp page which has, encapsulated within it in an iframe,
I have a classic asp page from which I open a popup page in
I have a classic ASP site that I would like the sessions to stay
NET and VB.net code behind. I have a classic ASP page that connects to
If I have the following jscript code on a classic asp page, how do
I have a SQL interface page in my classic ASP web app that allows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.