473,698 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To print a HTML page as I want

Hi at all,
I have a long HTML page with some photos (2 large and 2 little)
If a user print the page I'ld want that he can print as I want like a pdf
file.
Is it possible?
I.e.:Print margins and new page
Best it'ld be to ca eject paper when I wanto because I do not want that any
printer cut the photos
Steel
Jul 23 '05 #1
4 2138
On Sat, 30 Oct 2004 14:09:04 GMT, Steel <NO****@hotmail .com> wrote:
Hi at all,
I have a long HTML page with some photos (2 large and 2 little)
If a user print the page I'ld want that he can print as I want like a pdf
file.
Is it possible?
I.e.:Print margins and new page
Best it'ld be to ca eject paper when I wanto because I do not want that
any
printer cut the photos


Make a PDF, link to it.

Jul 23 '05 #2

"Neal"

Make a PDF, link to it.

But if the user like to print the page with the print button of the browser?
Steel
Jul 23 '05 #3
On Sat, 30 Oct 2004 15:45:25 GMT, Steel <NO****@hotmail .com> wrote:

"Neal"

Make a PDF, link to it.

But if the user like to print the page with the print button of the
browser?


Unfortunately, what you're looking for is not really possible when
printing in the browser. Even if support for print styles was more
complete, you don't know the paper size. Could be 8.5x11 inches, could be
A4.
Jul 23 '05 #4
in comp.infosystem s.www.authoring.html, Steel wrote:

"Neal"

Make a PDF, link to it.

But if the user like to print the page with the print button of the browser?
Steel


<link media="print" rel="alternate" href="thing.pdf ">

or maybe CSS is enaugh?

http://www.w3schools.com/css/css_mediatypes.asp
http://www.w3schools.com/css/css_ref_print.asp
http://www.w3.org/TR/html401/struct/...html#edef-LINK
http://www.w3.org/TR/REC-CSS2/media.html

(links by brucie, unsurprisingly. ..)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #5

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

Similar topics

14
6108
by: keith edward | last post by:
Hello, I have a long web document... about 30 pages. It is currently in HTML (tables)... how do I format it so that is will print the pages correctly? Thanks, Keith
48
8702
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much coule be shared between "screen" & "print") -no automatic page breaks (with...
21
5729
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want that when the user press the print button in the browser , it print automatically the pdf file and not the html page. To do that I insert at the top of my page: <link media="print" rel="alternate" href="printthepage.pdf"> But it do not work and...
4
2358
by: rom | last post by:
I need to print a html table when the user clicks on a key. the problem is that i don't want the printer dialog box to appear. i guess this is impossible in javascript so i think to create an event that will be fired by a keyup event, this event will submit the page, and i will be able to print in from the vb.net without the printing dialog box. the problem is that on the server i can't print the web table because i already submitted that...
3
1621
by: Umut Tezduyar | last post by:
In the msdn.microsoft.com/library most of the articles have an "print" option. But the "print" button is different from the javascripts "window.print()" method. It postpacks the page and then invokes the window.print () method. I couldn't found out the way it works. I need to do something like this, can any body help me? Also, i got a collection, and i want to print each of the items in the collection to a seperate page. If i do it with...
6
1879
by: Jeff Thies | last post by:
I have a club newsletter that is currently distributed as a PDF. I'm considering converting this to html... Several problems ensue. 1) PDF's can be formatted for a page to fit on a sheet of 8.5 * 11 paper. I'm not sure how to this in HTML. 2) A PDF can be set to print all pages. I'm not sure how to do this with html either. Suggesting page breaks (in CSS) and having this as a single
2
2819
by: prophet | last post by:
how do I create a print button that is on my index page that prints my target page (and only the target page) I tried <INPUT onclick=window.print(); type=button value="Print This Page" style="font-size: 10px; float:right"> But it prints the index page. Thank you.
41
7609
by: Cartoper | last post by:
I hear it is possible to disable the web browsers print function, does anyone know how to do that?
0
2367
by: thirunavukarasukm | last post by:
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one btnprint,btnclose
3
2930
by: rajkumarpb | last post by:
Hi friends, I am new to this forum...But not for programming...I want a Print CSS File to be added in my page..OK.... Here is the page and i want you friends to help me create the CSS File for the page i give here...Frankly said, i am a noob in CSS....Please help me....Here is my HTML Page and i want only the <div id="pageloader"> to be displayed.. <%@ page session="true" %> <%@ page import="java.util.*" %> <%@ page...
0
9170
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
9031
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
8902
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
7740
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, and deployment—without 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
6528
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
5862
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();...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.