Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 5 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I'm in the process of trying to write a backup summary report. But in order to do this I had to figure out HTML Tables and how to populate them. I figured out how to create the table and variables in it to capture the data.
In this sample code I was assigning data to variables for testing purposes, the actual program will be getting the data from various files created from my backup program.
Now my issue here is if I select the code in the PowerShell Studio app and select "Run Selection in Console" all works great. But if I build a executable and execute that program my htm file has the headings but no data.
Any one have any ideas why this is not working. I'm new to HTML tables and learning each day.
Any suggestions would be greatly appreciated. TIA..
To gain good control over HTML it would be best that you create aa collection of objects then use "ConvertTo-Html" to create the report. To format the table an all of the report you would use a CSS style sheet or header style block.
Even with a hand built html you can add a style sheet. Just target the style sheet at the tags that you want to style.
The links I posted have some examples of using a style sheet.
This topic is 5 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.