473,840 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.getEle mentById("PDF") ;
x.click();
x.setActive();
x.focus();
x.print();
</script>
</head>
<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0
onLoad="setTime out('printNow() ;', 1000)" >
<script language="javas cript" >
var myString ="<%=request.ge tContextPath()% >" +
window.location .search.substri ng(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.documen t.pdf.ReadyStat us. It returns
complete even before complete document is loaded.
Any help is very much appreciated.
Thank you.
Raj

Mar 1 '06 #1
2 1457
Raj wrote:
[the same as two days before:
<11************ **********@v46g 2000cwv.googleg roups.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.goo glegroups.com
(11 Feb 2006 12:16:44 -0800)
news:11******** *************@g 44g2000cwa.goog legroups.com
(12 Feb 2006 17:39:48 -0800; not really a duplicate,
but the same subject and poster)

news:lC******** ***********@new s20.bellglobal. com
(Tue, 14 Feb 2006 09:15:37 -0500)
news:XO******** ***********@new s20.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******** ***********@new s20.bellglobal. com
(Mon, 20 Feb 2006 14:11:04 -0500)

news:11******** *****@corp.supe rnews.com (Sat, 18 Feb 2006 08:55:55 -0800)
news:12******** ****@corp.super news.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.c om/faq/faq_notes/clj_posts.html>
Score adjusted

PointedEars
___________
[1] <URL:http://en.wikipedia.or g/wiki/Netiquette>
[2] <URL:http://en.wikipedia.or g/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
1814
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 image is located, and what is happening in the field is that the image only gets partly printed. Only the first page gets printed, and the bottom of the image, which should get printed on a 2nd page, is not printed. Also, the bottom of the first...
5
3358
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 = "P:\2004worksheets\IIS_WS.doc" Set oWord = New Word.Application oWord.Documents.Add (strObjectPath) oWord.PrintOut
7
2501
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 grid's contents. If you could just point me at the classes that I should consider and some very broad guidelines that would be great. For instances, would a good approach be to build an rich text document somehow with the proper formatting and then...
14
2850
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 number) linking (and sometimes compiling) becomes immensely slow, and task manager shows that link.exe (or cl.exe) is barely using any processor time, but an awful lot of RAM (around 150-200MB). I'm going to keep an eye on page faults since I can't...
1
3573
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 ,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>
3
3016
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 lifecycle of a page with a custom composite control on it. You can find that document here: http://www.ats-engineers.com/lifecycle.htm
1
1120
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 and business processes involved. Here a small sample of the process flow: --- Client Get's User Input for field 1...
4
5399
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 embed = document.createElement('embed'); embed.setAttribute('name','myembed') parent.appendChild(embed);
8
5919
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 clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
0
9856
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10914
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10597
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10656
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10299
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9434
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7834
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3136
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.