Skip to content

Commit

Permalink
added powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Jan 27, 2016
1 parent 85afb5a commit df1ead3
Show file tree
Hide file tree
Showing 14 changed files with 23,051 additions and 0 deletions.
15 changes: 15 additions & 0 deletions powershell/Exporter.ps1
@@ -0,0 +1,15 @@
$rootFolder=$MyInvocation.MyCommand.Path
$rootFolder=Split-Path $rootFolder

$dllPath =Join-Path $rootFolder "libs"

$dllExport =Join-Path $dllPath "ExportImplementation.dll"
#Add-Type -LiteralPath "D:\github\Exporter\ExporterWordExcelPDF\lib\ExportImplementation.dll"
Add-Type -LiteralPath $dllExport

[string[]] $myArray=@("Name,WebSite,CV", "Andrei Ignat,http://msprogrammer.serviciipeweb.ro/,http://serviciipeweb.ro/iafblog/content/binary/cv.doc","you, http://yourwebsite.com/,cv.doc")
$b=[ExportImplementation.ExportFactory]::ExportDataCsv( $myArray , [ExportImplementation.ExportToFormat]::Excel2007)
$dest=Join-Path $rootFolder "a.xlsx"
[System.IO.File]::WriteAllBytes($dest,$b)
Start-Process -FilePath $dest

Binary file added powershell/libs/DocumentFormat.OpenXml.dll
Binary file not shown.
2 changes: 2 additions & 0 deletions powershell/libs/DocumentFormat.OpenXml.xml

Large diffs are not rendered by default.

Binary file added powershell/libs/ExportImplementation.dll
Binary file not shown.
Binary file added powershell/libs/ExporterObjects.dll
Binary file not shown.
Binary file added powershell/libs/ExporterTests.dll
Binary file not shown.
Binary file added powershell/libs/Newtonsoft.Json.dll
Binary file not shown.
9,067 changes: 9,067 additions & 0 deletions powershell/libs/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file added powershell/libs/RazorEngine.dll
Binary file not shown.
8,229 changes: 8,229 additions & 0 deletions powershell/libs/RazorEngine.xml

Large diffs are not rendered by default.

Binary file added powershell/libs/System.Web.Razor.dll
Binary file not shown.
5,738 changes: 5,738 additions & 0 deletions powershell/libs/System.Web.Razor.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file added powershell/libs/itextsharp.dll
Binary file not shown.

0 comments on commit df1ead3

Please sign in to comment.