473,788 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any special considerations for making printable version of page?

I'm going to use an aspx page to display an invoice that customers can print
from. Sometimes when I go to a site and navigate to a page I want to print,
they will have a button that says something like "Show Printable Version".
Other than taking out all of the gui stuff and making a simple clean page
for printing, is there any other design considerations for making a page
good for printing? I'm using frames and all of my content shows in the main
frame. Is it possible to have the invoice aspx page show in the main frame
and then just print that page and not the header and left menu frame?

Thanks.

--
mo*******@nospa m.com
Nov 18 '05 #1
1 1869
Hi Moondaddy,

From your description, you want to implement the printable page function
which can help print a specify "printable" page. Also, your web application
is frame based, so your problem is mainly focus on how to specify a certain
frame to be printed, yes?

As for this problem, I think you can use the following means:
1. When in frame based page, we can use window.parent.f rames("framenam e")
to reference a certain frame we want. Then if we want a specified frame to
be printed when we call "window.print() ", we can use the "focus()" function
of a window. For example, we have a three frames structure page.
-----------------------------------------------
top
-----------------------------------------------
left | right
|
|
---------------------------------------------------

if we want to print the right frame when a button in left frame(in fact
this applies no matter in which frame the function id called) is clicked:

<script language="javas cript">
function printFrame(frm)
{
window.parent.f rames(frm).focu s();
window.print();
}
</script>

<input type="button" onclick="printF rame('right')" />

#Notice that the key point is call the .focus() method which set the
active frame(which will be printed when window.print() is called no matter
in which frame).

2. Also, I think you can also use the window.open( url of the printable
page) or a hyperlink such as
<a href="url of the printable page" target="_blank" />
to open a new browser window which will contain the printable page. Do you
think so?
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #2

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

Similar topics

17
47822
by: Pikkel | last post by:
i'm looking for a way to replace special characters with characters without accents, cedilles, etc.
125
14855
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
17
6192
by: CJM | last post by:
....When I say 'form' I'm talking about a conventional paper version, as opposed to a <form>. I'm building a web-based application which needs to be able to create Invoices/Advice Notes/Order Acknowledgements etc... The application itself has a largely fluid layout, but for these printed documents I need to make them fixed, such that the printed layout is consistent. That is, they need to look consistent on an A4 page. Its worth...
2
6286
by: Harold R | last post by:
Is there HTML code available to provide a printable version of a web page? Without the browser graphics, that is. -- Regards, Harold A Ralston Racine, Wisconsin, USA
7
2074
by: Sens Fan Happy In OH | last post by:
I'm having majour issues with FrontPage 2K and a webpage that I am having to create from scratch based on someone else's prior work. I hope someone can look at the source code for the page in question and tell me where my code is going wrong that I am getting things to load incorrectly. The situation is this: The owner wants "picture pages" that can be printed out exactly as fliers and pages that were created for print years ago. ...
10
2521
by: CJM | last post by:
....When I say 'form' I'm talking about a conventional paper version, as opposed to a <form>. I'm building a web-based application which needs to be able to create Invoices/Advice Notes/Order Acknowledgements etc... The application itself has a largely fluid layout, but for these printed documents I need to make them fixed, such that the printed layout is consistent. That is, they need to look consistent on an A4 page. Its worth...
5
346
by: moondaddy | last post by:
I'm going to use an aspx page to display an invoice that customers can print from. Sometimes when I go to a site and navigate to a page I want to print, they will have a button that says something like "Show Printable Version". Other than taking out all of the gui stuff and making a simple clean page for printing, is there any other design considerations for making a page good for printing? I'm using frames and all of my content shows in...
8
2917
by: abhi147 | last post by:
Hi , I have been trying to convert a 32 bit string like "b2a4fdf15af7c4f215e1909be4707bdb" to convert to a string of special chars like "²¤ýñZ÷Äòá?›äp{Û" I have tried a lot of things .. but nothing works . I have no idea how to go further . Can anyone help me ? Thanks in advance.
4
2252
by: wheel | last post by:
I have already built in support for multiple languages in some of my applications, but so far they have only used Western languages (English, Spanish, etc). I need to add some Far East languages: Korean, Japanese, and Chinese. Can anyone with experience in this area tell me of any special considerations? Access 2003. I've read here that the database sort order should be set to the appropriate setting and then compacted. I read too...
3
1925
by: Arancaytar | last post by:
This is my site: http://arancaytar.ermarian.net/ I am using this stylesheet to generate a printable version of the page (using media="print"): http://arancaytar.ermarian.net/sites/all/themes/itheme/print.css But for some reason, Firefox will only print a single A4 page. Rather than breaking the page once it is full, the entire content <div> appears to stretch out of sight beyond the bottom margin of the page.
0
9656
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10173
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
10110
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
9967
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
8993
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
6750
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
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2894
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.