473,763 Members | 5,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4987
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_US ER\Software\Mic rosoft\Internet Explorer\PageSe tup 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*@discussion s.microsoft.com > wrote in message
news:A9******** *************** ***********@mic rosoft.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_US ER\Software\Mic rosoft\Internet Explorer\PageSe tup 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*@discussion s.microsoft.com > wrote in message
news:A9******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message
news:54******** *************** ***********@mic rosoft.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_US ER\Software\Mic rosoft\Internet Explorer\PageSe tup 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*@discussion s.microsoft.com > wrote in message
news:A9******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message
news:54******** *************** ***********@mic rosoft.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_US ER\Software\Mic rosoft\Internet Explorer\PageSe tup 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*@discussion s.microsoft.com > wrote in message
news:A9******** *************** ***********@mic rosoft.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
2441
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 actually the name of a form element on the parent window. On the new page, I have this javascript: ---- var var2 = location.search.substring(9); document.write(var2)
0
878
by: Das | last post by:
Hi All,
4
1586
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 can I locate the timer component by name "timer1"? The Page.Controls collection only contains web controls but no components.
1
1754
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 has a graphics property! In old vb i could just print from the hDC into another picturebox and then take the image member, but there are no such things in vb.net, its ruined!!! please help me
33
3436
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
1809
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 (stores the customer picture and signature) tbl_InsuranceCompanies (stores the Insurance companies information) tbl_InsuranceType (stores the insurance type)
3
18768
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 automaticaly with the USER NAME entered in the privious form. i tried a lot of stuff but was not able to copy the value of previous form field to the field of new form. Urgent help is needed. Thanks
1
956
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") to bind data to the control. This works fine and i could see the data.
8
2249
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{ font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal} div.cls_002{font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}...
0
9387
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
10148
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
8822
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...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
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...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
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.