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

a script for online books

If its possible through a script.
I would like to write to one File example Word document, a content of a help file without expanding the help file folders/subfolders then copy its content then paste it into word document, then go to the next subfolder/node and do the same thing.
Seeing that it takes forever to manually copy a help of a certain software (example windows, or MS sql, MSDN) because of those subfolders/nodes that need to be expanded and copy the contents and paste it into the word document.
A script/function/subroutine will be a good help.

Thanks,
0
Chuckbuchan
Asked:
Chuckbuchan
  • 3
  • 3
1 Solution
 
BeldoranCommented:
not what you asked for, but maybe a different way of doing it...

If you print a topic from help you have the option to print current help page or everything under that topic.
You can set up a print driver to print to (for example) a text file or even a pdf file. You can get everything you want with one or a few print commands.

Bel

0
 
ChuckbuchanAuthor Commented:
how does this work ?
thanks
0
 
ChuckbuchanAuthor Commented:
how do you configure the printer to do this job?
thanks
0
Technology Partners: 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!

 
BeldoranCommented:
Go to printers -> add a printer.
there is an option there for 'print to file'
as the print driver select 'generic - text only'
that should work.

then when you print to this new print device you will be prompted for a file name.

another method is to install ghostscript and print postscript to it. (a bit more complex though)

Bel
0
 
ChuckbuchanAuthor Commented:
To Beldoran : when I choose print to file , then I open the file with word pad or note pad it shows something different than what I wanted to print.
0
 
BeldoranCommented:
Is it badly formatted? is the text you want in there?
If so you can try opening it in something like word and autoformat to clean it up.

If the text is incorrect, try a test print to a real printer and see if the same thing is happening. If so you may not have the topic selected correctly.

Other than that you can check the code page being used to print (in 2000, dont know about other os) by right clicking on the generic text printer and chosing properties -> font selection.

If this all doesnt do what you want then create another printer to file but use a postscript driver and feed the resulting output file into ghostscript. (I believe you can save the result as text, not sure exactly how though :-( )

Bel
I am away for next 3-4 days, so hope this solves your problem.
0

Featured Post

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!

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