We help IT Professionals succeed at work.
Get Started

Possible to have a Text file viewer with "print" button

scotthorton asked
Last Modified: 2012-05-07
This is a continuation of a issue that came up as part of a different, previous thread:

I have hundreds of text files on my webserver.  These are plain-text files that come from a legacy system.  I have a script that via pull-down menus allows the building and subsequent selection for display of the text files.

Depending on the browser, the user gets or does to get a menubar or print button (e.g. Google Chrome presents neither regardless of the toolbar or menubar setting in the code.

Does anyone know of a way to open a window where the user would be presented with a window that included a optional print button that allowed them to view, and the optionally print the text file being viewed.

We got close but not quite there from the other thread.  May not be possible.  Here is the sample code/webpage:

(the default selections will produce a sample text file).

Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE