473,695 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

printing a page in as per A5 size sheet

pradeepjain
563 Contributor
Hii guys i want to print a page in an A5 size page ! it has to be done using print.css and what are the parameters for the A5 size page ! any help on this!
Sep 21 '09 #1
14 22095
Dormilich
8,658 Recognized Expert Moderator Expert
A5 size is 148 x 210 mm. according to DIN 476.
Sep 21 '09 #2
pradeepjain
563 Contributor
@Dormilich
How do i start writing css as per A5 page !! i am finding it difficult! any help on this!
Sep 21 '09 #3
Dormilich
8,658 Recognized Expert Moderator Expert
@pradeepjain
you could try setting the screen dimensions in such a way, that it resembles an A5 page (though there won’t be page breaks), other than that you can only check the print preview for how it looks.

and eventually set the media type of the css to print.
Sep 21 '09 #4
pradeepjain
563 Contributor
i did find out this document it helped setting the A5 size

http://www.w3.org/TR/css3-page/

but the page margins and all are still not working properly :(

Expand|Select|Wrap|Line Numbers
  1. @page {
  2.   size: 8.5in 11in;
  3.   margin: 10%;
  4.  
  5.   @top-left {
  6.     content: "Hamlet";
  7.   }
  8.   @top-right {
  9.     content: "Page " counter(page);
  10.   }
  11. }
i tried out this code from that document the hamlet, and page counter are not appearing, but the properties from the printer are taken like url and all ..how to override all this things from css ??
Sep 22 '09 #5
Dormilich
8,658 Recognized Expert Moderator Expert
it depends on the CSS3 support your browser offers.
Sep 22 '09 #6
pradeepjain
563 Contributor
@Dormilich
i am using FF 3.5.2 version!! It has css3 support rite!
Sep 22 '09 #7
Dormilich
8,658 Recognized Expert Moderator Expert
@pradeepjain
while FF supports CSS3, it still does not fully support it, check the docs to see what properties are not yet supported.
Sep 22 '09 #8
pradeepjain
563 Contributor
@Dormilich
So is there any way to control whole printer properties and add new headers and footers and margins!!
Sep 22 '09 #9
Dormilich
8,658 Recognized Expert Moderator Expert
don’t know exactly, but padding and margin should not be a problem.

if you want total control, you might have to use XSL-FO.

mind that a browser is not intended for printing web pages in the first place…
Sep 22 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5754
by: Praveen Nagaraj | last post by:
Hi, Can someone tell me if there is a way to specify the page size for a asp.net web page. I don't want to use javascript way to resize the page but would like to control the page on design itself or somehow from the server side. Any suggestions would be greatly appreciated thanks, Praveen
1
5762
by: Richard | last post by:
Hi, I am trying to tuning up the performance of PSQL. I have tried changing the cache size. I found that the default page size if 8k, I am just wondering has any one know, if page size if biger the better or smaller the better, what is a good number of page size? My OS is red hat 8, and the OS page size is 4K. So should I change PSQL page size to 4k or to 16K, 32K? Thanks,
3
9421
by: Joe Weinstein | last post by:
Hi all. I am debugging a JDBC application. I find that a certain query that has an order-by clause fails with a SQL1585N A system temporary table space with sufficient page size does not exist. I can understand if there is not enough room for the temp data for sorting, but why should the page *size* matter? thanks, Joe Weinstein at BEA (DB2 ignorant)
1
7363
by: MacDermott | last post by:
I created a report to print labels, and it created a custom page size for the report. When I opened the properties of the printer driver I could see it listed - as Custom. Then I had to change printer drivers. (Long story, rather OT.) When I displayed the report, it was formatted for a full page - not real useful for mailing labels. The list of available page sizes did not include Custom.
1
5531
by: Raja Shekar | last post by:
HI Every body , I would like to know whether is it mandatory to give Tablespace page size and Bufferpool page size equal..? i also heard like while creating tablespace if pages size of tablespace and bufferpool , the statement itself will fail ...why i'm asking is if we chose a different page size ( ofcourse less than bufferpool page size ) only it shoud affect the performance of db2 .. Thanks in Advance Raja Shekar
2
2434
by: nikou_70 | last post by:
I write a page in HTML ,user can print it I want to fix page size in print page set up to (legal) that doesn't need user every time change option how I can do this.
3
1684
by: lazy | last post by:
wat will happen to a std string function like strcmp etc when the size of the string is greater than page size of the OS? A bigger question is how will they be even stored? (if at all they can be stored) My guess is that this is not an issue as I assume we can malloc like 1MB(>page size), so when we try to access it, both the pages are brought to memory. Does malloc by default tries to allocate in the same page? If so, how will it deal...
5
1281
by: suvarna | last post by:
Is it possible to reduce page size so that I can print more than one page on one page by inserting page break after each page printing. this feature must be printer dependent. i want it for hp inkjet/epson stylus c90. please cud u help at the earliest..
7
4681
by: =?Utf-8?B?Um9iIFRob21zb24=?= | last post by:
Hi is there a way in asp.net 1.1 to in code behind query the page size that is generated, I realise IIS does it as it has that data in the logs, I would like to capture this data so that I can create a log for performance on our site that is all held in the database TIA
2
2908
by: Simon | last post by:
Dear reader, In case a report is a sub report the Report Header of the sub report is printed in the report but the Page Header of the sub report will not be printed. This is the same for Page Footer of the sub report. Is there a possibility to force printing Page Header and Page Footer of a sub report.
0
9120
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
8998
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
8857
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
8831
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
7668
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...
0
5841
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();...
1
3013
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
2278
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1979
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.