Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Task to print a task with line numbers
Topic Summary: no code, no limits -- a catchy slogan, but I respectfully disagree
Created On: 05/27/2005 08:03 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 05/27/2005 08:03 AM
User is offline View Users Profile Print this message

Author Icon
AutoMate Coach(200+)

Posts: 237
Joined: 04/01/2005

Sometimes you have to revert to code. This requires a reference to Microsoft Scripting Runtime (1.0).

Here is what this task does...

1. Gives you a file dialog to choose a task file

2. Drops into BASIC code to read through that task file and create another temporary file with the line number appended at the beginning of each line

3. Prints the temporary file to your default printer

4. Deletes the temporary file

This is certainly not perfect, feel free to modify and re-post.

Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


Noel Scheaffer
 04/09/2006 12:27 AM
User is offline View Users Profile Print this message

Author Icon
Apprentice (20-49)

Posts: 47
Joined: 10/06/2005


The way I like to print the code is to use Techsmith Snagit, which will autoscroll and capture your whole script, ready for printing (colour is nicest).  Works a treat and includes the line numbers.  Also having a printout is great for when you have a lot of nested loops or IF's - you can easily lose track of what relates to what.

18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 2159 guests browsing this forum, which makes a total of 2159 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog