473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Make ASP page that polls to wait for a document to be produced

Hi!

I have a webapp. that holds a lot of documents. Some of the documents
needs to be produced from a database on-the-fly, some are static
documents like PDF, Word documents, etc... In the end, a user can do a
request to produce a large amount of documents as one huge PDF document.
Today the creation of documents is working, but all code is done in ASP.
In Visual Basic, I was thinking about making an ActiveX EXE server that
generates the PDF document. The ASP page will be polling until the file
is generated. When this is done, the file will be displayed. I have only
written down my thoughts on the subject. Is there a good way to do
this?? Any help is appreciated!

Henning :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #1
1 1393
I had a similar problem to this with some views that I am generating on
pages that could be requested during the update.

I achieved this just by wrapping the SleepEx API inside a COM object:

First, identify a way of knowing if you are updating your said document - I
use a lock file to tell this. Use a disk based flag file or something which
is quick and easy to check. That way you can tell if you are updating the
page for subsequent page requests. If you do encounter a subsequent request
for the same page then just sit in a while loop and sleep for a period of
time, up to a maximum period of time, until your condition is satisified -
completion or failure. You could wrap your whole routine in a COM object
and then use a similar approach of sleeping, but checking your object with a
obj.IsComplete() method or something similar.

It can be done though.

Richard

"kongsballa" <ko*********@devdex.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi!

I have a webapp. that holds a lot of documents. Some of the documents
needs to be produced from a database on-the-fly, some are static
documents like PDF, Word documents, etc... In the end, a user can do a
request to produce a large amount of documents as one huge PDF document.
Today the creation of documents is working, but all code is done in ASP.
In Visual Basic, I was thinking about making an ActiveX EXE server that
generates the PDF document. The ASP page will be polling until the file
is generated. When this is done, the file will be displayed. I have only
written down my thoughts on the subject. Is there a good way to do
this?? Any help is appreciated!

Henning :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Roger Cantillo | last post by:
Anyone know what I can do to build a transition page while ASP code runs in the background? Looking for something to say "Please wait while loading....."
0
by: Federico Moschini [328594] | last post by:
I have to make difference between2 data from a table in SQL. The page is made with Frontpage, and it extracts QtaGiaCons and Quantita from table "oclrighe". I have to make Quantita -...
37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
10
by: john | last post by:
I want the page to completely ignore all mouse clicks. I can create the onmouseclick event and return false, but that only disables certain types of things. I can still, for example, click in a...
2
by: Matt Culbreth | last post by:
Hello, I've got a fairly typical request to show a "Plese Wait" page while a long process is running. In this case, the user fills out a form, presses the button, a process searches for items,...
9
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
2
by: Brent | last post by:
Like many sites, mine has a standard "look" -- a template, if you will -- that visitors see on each page. I've tried to keep the code and HTML separate to the extent possible, and for most standard...
8
by: C.Joseph Drayton | last post by:
Hi All, I am calling a PHP script that does an operation then sends back a result. I want JavaScript to wait until that result has been recieved. I am using the following code. What can I do to...
8
by: dd | last post by:
Has anyone found a way around the problem IE has if you create elements (script or div, doesn't seem to matter) BEFORE the document.readyState is "complete" ? I know you can sometimes get away...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.