473,386 Members | 1,753 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,386 software developers and data experts.

printing external html page

dm
Hey,
I was wondering if anyone knew a way to print a page, other than the one
displayed. I don't want the other page to display at all. I was thinking
of placing a button on the page that is being displayed, which will pull
up the print dialog to print another page. Is that possible? Thanks in
advance for any help.

Dave
Jul 20 '05 #1
2 4791
I think the solution here is to open the newwindow = window.open(newpage);
but outside the screens view i.e set the popup to open in a specific
location, then newwindow.print(); then newwindow.close();

I think I have seen this done before, but don't forget about these peps
without JS who won't be able to do this in this way.

Stu

"dm" <hy******@mn.astound.net> wrote in message
news:c0**********@news.astound.net...
Hey,
I was wondering if anyone knew a way to print a page, other than the one
displayed. I don't want the other page to display at all. I was thinking
of placing a button on the page that is being displayed, which will pull
up the print dialog to print another page. Is that possible? Thanks in
advance for any help.

Dave

Jul 20 '05 #2
dm
Thanks for replying,
I have figured out a way in the meantime similar to your idea with some
help from a post somewhere else. I have a layer containing an iframe
with the text positioned off screen. I made a button in the active html
that that executes code to put focus on the frame and print it. Before
that I have it test the type of browser to determine which code to
execute to print the page (since there seem to differences between the
browsers). Works like a charm now. Thanks.

dave

Stuart Palmer wrote:
I think the solution here is to open the newwindow = window.open(newpage);
but outside the screens view i.e set the popup to open in a specific
location, then newwindow.print(); then newwindow.close();

I think I have seen this done before, but don't forget about these peps
without JS who won't be able to do this in this way.

Stu

"dm" <hy******@mn.astound.net> wrote in message
news:c0**********@news.astound.net...
Hey,
I was wondering if anyone knew a way to print a page, other than the one
displayed. I don't want the other page to display at all. I was thinking
of placing a button on the page that is being displayed, which will pull
up the print dialog to print another page. Is that possible? Thanks in
advance for any help.

Dave


Jul 20 '05 #3

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

Similar topics

1
by: alb120 | last post by:
I implementing Internet Printing; but it fails: http://w23ksv/printers/ gives error on EI Version 6.0.2800.1106 (XP) "Server object error 'ASP 0193 : 80020009' OnStartPage Failed...
8
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
1
by: phil cunningham | last post by:
Hi there We have a CAD application written in C# that consists of a series of shapes. We need to product a range of reports for a range of different paper sizes (letter size to 36" paper). ...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
2
by: letsgetsilly | last post by:
I'm developing the external corporate website for my company in Visual Studio 2003 using html, css, and a user web control for the header/navigation. When I try to print any of the pages only the...
4
by: Lucas Ponzo | last post by:
Hi All, I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket pc ... I need to print a page. But I need that the page print on a printer installed on the web server...
29
by: FredBear | last post by:
I am just coming to grips with php, Dreamweaver and MySQL and I want to make a facility available for the members of the group I am creating my web site for. I want them to be able to print-out a...
4
by: kalyan | last post by:
Hi All I have a table with 10 rows and 15 columns...when i click on a button each row should be printed in a single page with the line break to the corresponding columns of that particular...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.