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

Print web form(urgent)

Das
Hi All,
I want to have a link on the web form. On click it should print the web form.
If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing.
Is there any other method to print the complete form
thanks in advance...
das
Nov 16 '05 #1
4 4947
There are no way to avoid printing headers and footers in browser (this is
internal function) however you can use Crystal Reports Extension to print
nice forms from ASP.NET or any other 3rd part ActiveX (eg.
http://www.htmlprinting.com/)
In order to print "less" garbage use CSS to generate print view, but even
withit you can not full avoid printing of internals.

However you can build your own ActiveX wich prevent printing headers. In
order to do this you only have to change
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this
registry header and footer value to "". BUT I'd be very VERY angry if
someone'll try to change any registry key in my computer...
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Hi All,
I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing.

Is there any other method to print the complete form
thanks in advance...
das

Nov 16 '05 #2
Das
Dear Tamir,
thanks for your reply,
What if, I want untill the user selected or cancelled the window.print() dialog box.
I want modal form like behavior.

Thanks.
Das

"Tamir Khason" wrote:
There are no way to avoid printing headers and footers in browser (this is
internal function) however you can use Crystal Reports Extension to print
nice forms from ASP.NET or any other 3rd part ActiveX (eg.
http://www.htmlprinting.com/)
In order to print "less" garbage use CSS to generate print view, but even
withit you can not full avoid printing of internals.

However you can build your own ActiveX wich prevent printing headers. In
order to do this you only have to change
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this
registry header and footer value to "". BUT I'd be very VERY angry if
someone'll try to change any registry key in my computer...
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Hi All,
I want to have a link on the web form. On click it should print the web

form.
If I use javascript window.print then it displays the Title on the top

of the page & URL at the bottom but i don't want any such thing.


Is there any other method to print the complete form
thanks in advance...
das


Nov 16 '05 #3
So do it in JS onClick or OnMouseDown...

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
Dear Tamir,
thanks for your reply,
What if, I want untill the user selected or cancelled the window.print() dialog box. I want modal form like behavior.

Thanks.
Das

"Tamir Khason" wrote:
There are no way to avoid printing headers and footers in browser (this is internal function) however you can use Crystal Reports Extension to print nice forms from ASP.NET or any other 3rd part ActiveX (eg.
http://www.htmlprinting.com/)
In order to print "less" garbage use CSS to generate print view, but even withit you can not full avoid printing of internals.

However you can build your own ActiveX wich prevent printing headers. In
order to do this you only have to change
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this
registry header and footer value to "". BUT I'd be very VERY angry if
someone'll try to change any registry key in my computer...
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Hi All,
I want to have a link on the web form. On click it should print the
web form.
If I use javascript window.print then it displays the Title on the
top of the page & URL at the bottom but i don't want any such thing.


Is there any other method to print the complete form
thanks in advance...
das


Nov 16 '05 #4
Das
Tamir,
Thanks again for reply, Even though I call a onclick event, It will simply execute What I want to wait until the user has selected or cancelled the print dialog box. I want some notification after showing the print dialog box. so that after that I can perform some operation.
das

"Tamir Khason" wrote:
So do it in JS onClick or OnMouseDown...

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
Dear Tamir,
thanks for your reply,
What if, I want untill the user selected or cancelled the

window.print() dialog box.
I want modal form like behavior.

Thanks.
Das

"Tamir Khason" wrote:
There are no way to avoid printing headers and footers in browser (this is internal function) however you can use Crystal Reports Extension to print nice forms from ASP.NET or any other 3rd part ActiveX (eg.
http://www.htmlprinting.com/)
In order to print "less" garbage use CSS to generate print view, but even withit you can not full avoid printing of internals.

However you can build your own ActiveX wich prevent printing headers. In
order to do this you only have to change
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup this
registry header and footer value to "". BUT I'd be very VERY angry if
someone'll try to change any registry key in my computer...
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Das" <Da*@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
> Hi All,
> I want to have a link on the web form. On click it should print the web form.
> If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing.
>
>
> Is there any other method to print the complete form
>
>
> thanks in advance...
> das


Nov 16 '05 #5

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

Similar topics

3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
0
by: Das | last post by:
Hi All,
4
by: Martin Hill | last post by:
Hi there, How can I find the components added to web form from my custom web control? Suppose I added a Timer component (with name "timer1") onto the web form, from my user web control, how...
1
by: some good man | last post by:
Hi How do i print the a form with its controls? I know how to print, but when i want to paint the form onto the printerdocument control, i have to paint from an image, but the form doesnt even...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
7
by: Niyazi | last post by:
Hi, I am developing small insurance application using VB.NET and SQL server 2000. My tables in SQL server are: tbl_Customer (stores the custmer information) tbl_CustImage ...
3
by: Omar Anwar | last post by:
Hi, I am using a form which asks for USER NAME and password. On OK it opens a new FORM in which certain info has to be entered. It also includes USER NAME. i want this field to be populated...
1
by: abc123def | last post by:
Hi, I have a form with some textbox controls.I am using a bindingsource to bind data to these controls. For Example, i use txtbx.DataBindings.Add("text", bindingSourceName, "Ds_Column_name")...
8
by: manugm1987 | last post by:
<?xml-stylesheet type="text/xsl" href="ch1.xsl"?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> span.cls_002{...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...
0
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,...
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
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.