Virtually everything is poshable
Daily Report – iPhone Version
If you are using my Daily Report script and want a nice output I have just received a cool tip from NiTRo over at http://www.hypervizor.fr
He explained how to alter the script to get it looking nice on the iPhone, check out the before and after:
| Before | After |
To achieve this all you have to do is alter one line at the end of the Get-HTMLTable function…
$HTMLTable = $HTMLTable -replace ‘<th>’, “<th width=200>”
So the function now looks like this:
Function Get-HTMLTable { param([array]$Content) $HTMLTable = $Content | ConvertTo-Html $HTMLTable = $HTMLTable -replace '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', "" $HTMLTable = $HTMLTable -replace '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', "" $HTMLTable = $HTMLTable -replace '<html xmlns="http://www.w3.org/1999/xhtml">', "" $HTMLTable = $HTMLTable -replace '<html>', "" $HTMLTable = $HTMLTable -replace '<head>', "" $HTMLTable = $HTMLTable -replace '<title>HTML TABLE</title>', "" $HTMLTable = $HTMLTable -replace '</head><body>', "" $HTMLTable = $HTMLTable -replace '</body></html>', "" $HTMLTable = $HTMLTable -replace '<th>', "<th width=200>" Return $HTMLTable }
Thanks very much to NiTRo for his work on this and I hope it helps out any iPhone users, now all I need is a way to make it look nicer for us Windows Mobile Users
| Print article | This entry was posted by Virtu-Al on August 20, 2009 at 11:22, and is filed under PowerCLI, powershell, vmware. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |







(3)
(13)
(0)
about 1 year ago
I can read the AL’s reports from my bed now
about 1 year ago
@NiTRo
Now if it was a French ladies bed I would be pleased but im not sure how i feel about a French man
about 1 year ago
check this AL, she’s not french but she might check your reports :p
http://www.hypervizor.fr/?p=838
about 1 year ago
@NiTRo
She can check my reports any time !
about 1 year ago
Anyway to output this to be read on a blackberry?
Thanks,
Marc
about 1 year ago
That is blackberry bold sorry…