• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

printing from a web page

Hey,
I want to print my web page, but I don´t want to have the header and footer (url and date) printed.
I don't want to do it by modifying the page setup properties in my browser because the page will be seen for many people and I cannot tell'em to change the properties, so it should be done by using ASP, VBscript or Javascript, which I use in my page.
any idea on how to do some code to avoid printing header and footer automatically.

thanks,
JULIO
0
juliovg
Asked:
juliovg
  • 4
  • 4
1 Solution
 
DabasCommented:
I would suggest you program a Print button onto your webpage, that will create a text file or a word file that will look similar to the web page, and then print that one instead of the page

Dabas
0
 
paulie134Commented:
Dabas is right if you are on a Lan and have permissions to run that kind of script. If this is for the internet then it is impossible, as most users have disabled the scripting option in their browsers. You could do it in the form of an ActiveX control but this would mean, getting it certified etc. Otherwise it is not possible that i am aware of to disable these anywhere than in the browser options
0
 
paulie134Commented:
May i change what i have just said, goto the link below, it looks like in IE5.5 they gave us some more control over printing. There is a link at the bottom that has further relevant details on the Header/Footer customisation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie55/html/printtemplate2.asp
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
juliovgAuthor Commented:
Hey,
thanks for the info....there are two things, the page I created is for a private company but it will run over the internet...so, I cannot control the browser people will use to see the page...
How feasible is to convert the page in an excell page and call the excell file to print it.
actually the content of the pages is a lot of tables with different information , so maybe I could convert it to excell and then print it directly.......
what do you think??
thanks,
JULIO
0
 
juliovgAuthor Commented:
Hey,
thanks for the info....there are two things, the page I created is for a private company but it will run over the internet...so, I cannot control the browser people will use to see the page...
How feasible is to convert the page in an excell page and call the excell file to print it.
actually the content of the pages is a lot of tables with different information , so maybe I could convert it to excell and then print it directly.......
what do you think??
thanks,
JULIO
0
 
paulie134Commented:
This will be possible to run on a client machine using a VB Active X control, but the user has to be willing to download this and yo need to know VB to write it. I also know that if you areplanning to do this on the server that it wil not work for some sort of security reason MS dont like web pages launching Office apps remotely (probably because of the licensing). Do you have VB skills or even VB on you machine?
0
 
juliovgAuthor Commented:
Hey,
I don't have much experience on VB, we are doing some of the stuff in the pages with VBscript....
This Active X control you are talking about, does it have to be downloaded by the client to be installed in its machine or how does it work???

Thanks for the help....
JULIO
0
 
paulie134Commented:
I still dont know why you cant use the link that is given to Microsoft, this would seem the most simple and direct root>
0
 
juliovgAuthor Commented:
Hey,
the thing is taht people who will use the web page does not have an standard browser, actually, most of themm right now have IE 4.0 or 5.0, so I cannot control the way
they access the page, so it may work for some people and for others it won't...
So, I wanted an standar way for everybody just to click on the page and print it.....
I did not read the complete info on the link you sent, maybe I'm missing something...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now