473,233 Members | 3,294 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,233 software developers and data experts.

repost: Printing a large PDF document that is added by EMBED tag

Raj
Hi,
I have the following problem. I am displaying and printing a PDF file
that is generated by my Application server. The print dialogs comes up
correctly for the small PDF for the larger PDFs ,the print dialog for
the Acrobat reader does not comes up. I believe this is because print
method is called before the complete loading of the PDF document.

<html>
<Head>
<script>
function printNow()
var x = document.getElementById("PDF");
x.click();
x.setActive();
x.focus();
x.print();
</script>
</head>
<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0
onLoad="setTimeout('printNow();', 1000)" >
<script language="javascript" >
var myString ="<%=request.getContextPath()%>" +
window.location.search.substring(1);
document.write('<EMBED name="PDF" SRC="' + myString + '"
WIDTH=100%
HEIGHT=100% fullscreen="yes">');
</script>
</body>
</html>
Here if I increase the setTimeOut period for the larger report then the

print dialogs shows up. However, I do not know the size of the PDFs so
I cannot decide the time at design time. Is there a way to findout the
loading of the PDF document is complete.
So far , i have tried the following
1. Instead of onLoad, I tried calling the printNow() function in the
body after the EMBED. That does not help
2. Tried using the windows.document.pdf.ReadyStatus. It returns
complete even before complete document is loaded.
Any help is very much appreciated.
Thank you.
Raj

Mar 1 '06 #1
2 1425
Raj wrote:
[the same as two days before:
<11**********************@v46g2000cwv.googlegroups .com>]


First of all, sorry for being off-topic, but I consider it important to
say the following here, in public.

This is the fourth time in a row I had to observe an article here with a
Subject starting with "repost:" referring to content that was not canceled
at all before. It is enough now!

news:11**********************@z14g2000cwz.googlegr oups.com
(11 Feb 2006 12:16:44 -0800)
news:11*********************@g44g2000cwa.googlegro ups.com
(12 Feb 2006 17:39:48 -0800; not really a duplicate,
but the same subject and poster)

news:lC*******************@news20.bellglobal.com
(Tue, 14 Feb 2006 09:15:37 -0500)
news:XO*******************@news20.bellglobal.com
(Tue, 14 Feb 2006 09:29:03 -0500; not a duplicate, but a demanding, and
utterly nonsensical top-post on the same subject, by the same person)
news:iv*******************@news20.bellglobal.com
(Mon, 20 Feb 2006 14:11:04 -0500)

news:11*************@corp.supernews.com (Sat, 18 Feb 2006 08:55:55 -0800)
news:12************@corp.supernews.com (Tue, 28 Feb 2006 06:35:03 -0800)

JFYI: Usually a repost on NetNews is something that is done by the a server
administrator or the original author, if an article has been canceled
unauthorized deliberately (by a troll), or canceled authorized accidentally
(by the original poster).

So probably I have to filter out postings with Subjects starting with
"repost:" from users of these service providers, who appear to confuse
this discussion group with a support forum on the Web; people who therefore
probably think that the chances for an article to get followups increase
the more often and the more frequent the article is posted or referred to,
when the exact opposite is true; people who have probably never heard of
Netiquette[1], or the Breidbart Index[2].

<URL:http://www.jibbering.com/faq/faq_notes/clj_posts.html>
Score adjusted

PointedEars
___________
[1] <URL:http://en.wikipedia.org/wiki/Netiquette>
[2] <URL:http://en.wikipedia.org/wiki/Breidbart_Index>
Mar 2 '06 #2
Raj
Pardon my ignorance on the Netiquette.

Mar 2 '06 #3

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

Similar topics

2
by: Ohaya | last post by:
Hi, We've been having a problem with one particular page that has a button on it, and a "tall" image (top-to-bottom). The button calls some simple Javascript to print the frame in which the...
5
by: Stefania Scott | last post by:
I am trying to print a word document from Access. The code I've written works well in my computer but does not in the one were it is needed. Here the piece of code: 'doc path strObjectPath =...
7
by: Dennis C. Drumm | last post by:
I was wondering if someone could suggest were/how I could get started with setting up printing of a collection of text that includes tables from a grid and other supporting information about the...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
1
by: Raj | last post by:
Hi, I have the following problem. I am displaying and printing a PDF file that is generated by my Application server. The print dialogs comes up correctly for the small PDF for the larger PDFs...
3
by: Beavis | last post by:
I hate to repost a message, but I am still at the same point where I was when I originally posted, and hopefully someone else will see this one... Ok, so I have gone off and documented the...
1
by: D-Someone | last post by:
I am re-posting this message as originially it did not get a single response.. Any ideas? -------------- I am trying to come up with a good design for a web service that has some user logic...
4
by: vunet.us | last post by:
When I create <embed name='myembed'object in HTML and say later on: var svgDoc = document.myembed.getSVGDocument() SVG document gets found. But when I create SVG document using DOM: var...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

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.