473,395 Members | 2,192 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,395 software developers and data experts.

Printing whole page in a web window

Hi,

I hav got a page to be printed beyond the viewable window of the contents int he page.
on using window.print() , it just prints the viewable scrren on the window and not the whole contents on the page.i need to do it on click of a print button.The web page is bound by a X- beam framework .

Thanks in advance for ur help

Bye
Regards,
Rias.
Jan 22 '07 #1
4 2543
acoder
16,027 Expert Mod 8TB
Since the Javascript print function doesn't actually print the page, but rather just opens the print dialogue, it is your page which will be the problem. Design a printer-friendly page getting rid of extra items which should not appear on the printed page and it should print out fine. You can also use CSS for page breaks, etc.
Jan 22 '07 #2
Hi,
Thanx for the reply

The problem over here is that the page is being generated by Framework and hence the framework is responsible for handling the page .The page is generated dynamically according to the data input and hence we hav been asked to put the whole content within the window and access to whole data is done through scrollbars within the page .Is there any other possible solution to fix this either by a Javascript or by Java side? The framework used here is Xbeam and its a Private IPR framework .

Thanx in advance

regards,
Rias
Jan 22 '07 #3
acoder
16,027 Expert Mod 8TB
The problem over here is that the page is being generated by Framework and hence the framework is responsible for handling the page .The page is generated dynamically according to the data input and hence we hav been asked to put the whole content within the window and access to whole data is done through scrollbars within the page
I assume these scrollbars are not the browser scrollbars but actually contained within the page (probably in a div or iframe. Is there no way you can break out of the scrollbars and display the data straight onto the browser using the browser scrollbars to view all the data? I'm not familiar with the Xbeam framework. Is it possible to display some sample code output?
Jan 22 '07 #4
I assume these scrollbars are not the browser scrollbars but actually contained within the page (probably in a div or iframe. Is there no way you can break out of the scrollbars and display the data straight onto the browser using the browser scrollbars to view all the data? I'm not familiar with the Xbeam framework. Is it possible to display some sample code output?
yes its actually within the page and moreover it is not possible to breakout of it and display thru browser window.maximum we can redirect the contents to other page but still the same page will be under the framework control and hence the same problem will be faced.

[IMG src="C:\Documents and Settings\riasudeenk\Desktop\output.bmp"][/IMG]
Jan 22 '07 #5

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

Similar topics

4
by: Marina Ferguson | last post by:
Hi, I have a document with an iframe. The main doc has a "Print" button. The idea is that when the user clicks it, the contents of the iframe is printed. For some reason instead of the iframe...
7
by: ap | last post by:
Hi, It is a quick question... Is that impossible to print the page(Web Form .aspx file) in client side using GDI+ like PrintDocument pd = new PrintDocument(); pd.print(); As I know it is a...
2
by: Jacek | last post by:
I'm developing ASP.NET C# application. I need to implement server-side printing for asp.net form on specified in DB printer. I know how to print it on Client-side (window.print()). How can I print...
7
by: DazedAndConfused | last post by:
I have a 8.5 x 11 landscape document with about 1/4 inch of space on the left and right where there is no print. The document displays perfect in print preview, but when I print it, about 1/2 inch...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
1
Frinavale
by: Frinavale | last post by:
Hi there, I'm currently attempting to print a web-page at the end of a lengthy registration process. The script I'm using is quite simple: <body onload="window.print(); window.close();"> ...
7
kvijayhari
by: kvijayhari | last post by:
hi i've doubt in the window.print() function. I'm using a css with the attribute media=print and i'm hiding the unwanted things from display for printing using this css. I'm opening a window...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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...

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.