?
Solved

printing from a web page

Posted on 2003-02-18
9
Medium Priority
?
240 Views
Last Modified: 2010-04-17
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
Comment
Question by:juliovg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 7978829
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
 

Expert Comment

by:paulie134
ID: 7980308
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
 

Expert Comment

by:paulie134
ID: 7980366
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:juliovg
ID: 7982190
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
 

Author Comment

by:juliovg
ID: 7982728
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
 

Expert Comment

by:paulie134
ID: 8015350
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
 

Author Comment

by:juliovg
ID: 8017493
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
 

Accepted Solution

by:
paulie134 earned 300 total points
ID: 8017752
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
 

Author Comment

by:juliovg
ID: 8017908
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question