DADiSP Worksheet Functions > Function Categories > Hardcopy > PRINTWSFILE
Prints a Worksheet to a file.
PRINTWSFILE("filename", "wsname")
"filename" |
- |
A string. The destination file. |
"wsname" |
- |
Optional. A string, the Worksheet name. Defaults to the current Worksheet. |
Nothing. The Worksheet is printed to a file using the current printer driver.
W1: gnorm(1000, 1/1000);
W2: integ(w1)
printwsfile(getmiscpath(1, 7) + "output.prt");
Prints the current Worksheet to "output.prt" located in the user's Documents folder.
W1: gnorm(1000, 1/1000);
W2: integ(w1)
saveworksheet("Test");
printwsfile(getmiscpath(1, 7) + "output.prt", "Test");
Saves the current worksheet to "Test" in the current Labbook and prints "Test" to "output.prt" located in the user's Documents folder.
W1: gnorm(1000, 1/1000);
W2: integ(w1)
exportworksheet(getmiscpath(1, 7) + "Test.dwk");
printwsfile(getmiscpath(1, 7) + "output.prt", getmiscpath(1, 7) + "Test.dwk");
Saves the current worksheet to "Test.dwk" in user's Documents folder and prints "Test.dwk" to "output.prt" located in the user's Documents folder.
PRINTWSFILE prints the worksheet to a file using the currently selected printer. Use
Both internal Worksheets and external DWK Worksheets can be printed to a file.
If wsname is specified, the Worksheet is loaded prior to printing.
See PRINTWSFILEFIRST and PRINTWSFILENEXT to print multiple Worksheets to sequentially numbered files.