473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Header / Footer

Can I add dinamicaly (in my code) a header and a footer for each time I want
to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my
web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
Nov 18 '05 #1
3 1480
use CSS to set the @media tags.
It's not an serverside issue but rather a clientside one

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt > wrote in message
news:eg******** *****@tk2msftng p13.phx.gbl...
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 18 '05 #2
Hi Ruca,

I think that will need Javascript, have a look at the page for scripting.

http://msdn.microsoft.com/library/de...blocktopic.asp

http://msdn.microsoft.com/library/de...blocktopic.asp

And this I found for the Javascript, however I never used it.

http://msdn.microsoft.com/library/de...DHTMLPRINT.asp

I hope this helps?

Cor
Nov 18 '05 #3
The answer to the header/footer issue requires 'User Controls'
[1]
http://msdn.microsoft.com/library/de...ercontrols.asp
[2]
http://msdn.microsoft.com/library/de...letcontrol.asp
[3] http://www.aspfree.com/c/a/ASP.NET/M...-to-ASP.NET/6/
[4]
http://www.devarticles.com/c/a/ASP.N...ined-Part-1/1/

To dynamically determine which User Control is used in a header/footer is
also possible

[1]
http://msdn.microsoft.com/library/de...mmatically.asp

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"ruca" <ru***@iol.pt > wrote in message
news:eg******** *****@tk2msftng p13.phx.gbl...
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 18 '05 #4

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

Similar topics

2
2938
by: Jurjen de Groot | last post by:
When printing my webpage, IE inserts a header (name of the webform + pageNr ) and a footer (URL + date) Does anyone know of a way to supress this behaviour, I'd like to print a letter / invoice from IE but without this header/footer. TIA Jurjen de Groot
7
3287
by: JIM.H. | last post by:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
1
2705
by: Gabriel Lozano-Morán | last post by:
I was wondering if it is possible to change the header/footer (See menu file -> Page setup in IE) by using meta tags. We have a module that uses the ActivePDF Webgrabber component to generate PDF documents from ASP.NET documents and we now need to add text to the header and footer for reach report. I was hoping for a quick solution using meta-tags or dhtml or whatever instead of having to look for another PDF generator. A search on...
4
1450
by: ruca | last post by:
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application? NOTE: The print command made for my is a click in a button that I have in my web page, and not in browser menu File->Print -- Programming ASP.NET with VB.NET Thank's (if you try to help me)
5
7868
by: Elena | last post by:
I need the VB.NET code to change the header/footer of an Excel spread sheet, ASAP. I am doing it through a VB application. I can change the ranges/cell values using code, but I do not know how to change things outside of the cell ranges. I will try and post in an Excel group, but i do not need to change it in a worksheet, I need to change it through a VB application. For example, I am using this code to change values in certain cells: ...
4
4547
by: jmalvika | last post by:
Hi all, I'm trying to generate an excel report from an ASP web page using .. "response.ContentType = "application/vnd.ms-excel" .... I need to add a custom header & footer to the excel report on generation. Is there a way to do this from the web without installing Excel on the webserver? ..
4
2687
by: stevesj | last post by:
I have a web form that generates 4 or 5 printed pages of html and a few images. I know how to insert CSS page breaks. Is there a way to calculate on the server where the page will break - like an IE print preview on the server ? or Is there a way on the server to include a header/footer such that when the web form is printed from Internet Explorer, each printed page has a header
3
5905
by: HugeBob | last post by:
Hi All, Is it possible to access the browser's print header/footer. I want to create a printable version of a page and alter the printout's header and footer. Is this possible? Thanks!
3
5514
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me. my coding are as below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>...
0
8413
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
8740
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
8513
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
8617
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
7352
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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.