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

Javascript:window.print()

i m developing the electrnic check printing. I design one check. now for printing i m giving this command "javascript:parent.window.print()". but the problem is that it also print some unnecessary information. like title, page numbers etc.

Can anyone help me in this regard. or is there any other way to design check in web applications.

Regards
Tassadique Humayun
Mar 10 '07 #1
2 2891
ronverdonk
4,258 Expert 4TB
Before you run your script you must set the 'print options' of your browser. Set the header and footer text to blank.

Ronald :cool:
Mar 10 '07 #2
bergy
89
Another alternative to using HTML to create the checks would be to create the checks as a PDF file which should give you alot more flexibility with the layout and printing options.

There is an amazing class called FPDF that will allow you to generate PDF files in PHP. It's very easy to use, well documented, and (best of all) FREE! I use it when I'm creating invoices and receipts in ecommerce apps and if I were coding what you're doing I'd use it there too.

Here's a link to check out:

http://www.fpdf.org/

Also, if you'd like to import existing PDFs (like maybe a couple templates with customized backgrounds for your checks) check out this addon to FPDF called FPDI. You can take any PDF file, import it to the class and start writing on it.

http://fpdi.setasign.de/
Mar 11 '07 #3

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

Similar topics

1
by: David | last post by:
Hi, I use the following code to open a javascript window. Is it possible to modify this to have the standard toolbar open in the window? Thanks <script language="JavaScript"...
3
by: Marcus Bjorke | last post by:
I use a print link that causes a problem with Opera 7. The link looks like this <a href="javascript:parent.frames.mainFrame.print()">Print this page</a> I also used <a...
19
by: Eva | last post by:
Hi, I'm really really really new to javascripts and so i couldn't really comprehend thoroughly on the the previous posts regarding this issue. Anyways, I'm setting up a picture album site....
5
by: Mark | last post by:
Hi all, how do I open a javascript window from a code behind page? I was using Response.Write("<script language='javascript'>window.open('url','name','options');</script>") but now for some...
1
by: bbcrock | last post by:
Is it possible to send attributes into this function to change the print preferences from Portrait to Landscape with IE 6.0 set as the standard browser? Right now I'm using ...
1
by: DaniltonW | last post by:
I am trying to create a code for add a page to the favorite but "AddFavorite" not appears in the following function: javascript: window. external. AddFavorite? In javascript:window.external. does...
5
by: zzapper | last post by:
Hi, I use a JavaScript window to access a library of songs when the user picks one this is written to the users database record (PHP/MySQL). When the use closes the JavaScript window he returns to...
3
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I have the following in my asp .net web page. It opens a separate browser window. However, on the main page, all of the contents is gone and shows nothing but . I have to use the Back...
1
gchq
by: gchq | last post by:
Hi there I have a Table nested in a Div that in turn is nested in panel (with scrollbars) in turn nested in a multiview.. The table has the class set as 'print' - that points to a css file via...
5
by: gvamohan | last post by:
hai every one iam opening an window through javascript <script type="text/javascript" language="javascript"> var k=false; ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.