Product, version and build: studio 2012, v. 3.1.35
32 or 64 bit version of product: 64 bit
Operating system: windows 7
32 or 64 bit OS: 64 bit
Printing. I created a gui (form) that has three columns that users input the items weights. it then does an average calculation and a standard deviation calculation. we compile the script into an executable. However, they require the results (their input included) needs to be printed for their logs.
any help or ideas are greatly appreciated.
printing the gui form
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: printing the gui form
[TOPIC MOVED TO POWERSHELL GUI FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: printing the gui form
I recommend looking at the Out-Printer cmdlet. You will have to format and pipe the data to the cmdlet.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: printing the gui form
You can also export the data from the grid to a file. THe CSV can be easily printed by calling:
Start-Process <file.csv> -verb Print
See the attached example.
Start-Process <file.csv> -verb Print
See the attached example.
- Attachments
-
- Demo-DGVExport3.psf
- (17.35 KiB) Downloaded 96 times
Re: printing the gui form
Another method of printing is to use the "Document Print" classes.
See attached.
See attached.
- Attachments
-
- Demo-PrintDocument2.psf
- (16.66 KiB) Downloaded 103 times