dfinke
4fa34ae257
Rename switch NotAsDictionary to Raw
2022-05-04 18:33:19 -04:00
dfinke
aea90aa8d6
Fix reading multiple sheets in the xlsx where row/col count is diff
2022-05-03 17:53:58 -04:00
dfinke
964cf9e9c6
Merge branch 'master' of https://github.com/dfinke/ImportExcel into add-helper-functions
2022-04-30 08:21:18 -04:00
dfinke
61b44f826d
Merge branch 'master' of https://github.com/dfinke/ImportExcel into adding-to-import-excel
2022-04-30 07:25:58 -04:00
dfinke
b634bf9d93
Fix fir #1172
2022-04-29 20:39:51 -04:00
dfinke
eb10364722
Add helpers
2022-04-28 19:44:49 -04:00
dfinke
7f36b44fa8
renamed to NotAsDictionary
2022-04-12 18:08:11 -04:00
dfinke
483f761016
Add switch to not return data as a dictionary
2022-04-12 18:03:34 -04:00
dfinke
d55f0e64d4
WIP - Add sheets and contents to a hashtable
2022-04-11 18:48:17 -04:00
dfinke
f83f654c4a
Update how Import-Excel reads sheets, and remain backward compatible
2022-04-11 16:58:55 -04:00
James Mueller
96493e059b
ConvertFrom-ExcelToSQLInsert fix single quotes
...
If data in the Excel file contains single quotes, then the insert will bomb as it will be malformed. Quotes would need escaped. Not all languages will support the same escape method, so I recommend it being set by an optional parameter.
Example of what will fail:
Name
-----------
Fry's
INSERT INTO [Name] Values ( 'Fry's' )
Corrected for quotes (such as needing to escape a single quote with an additional single quote)
INSERT INTO [Name] Values ('Fry''s')
Example code:
$ConvertToSqlParams = @{TableName = ‘dbo.Names’
Path = ‘C:\temp\data.xlsx’
ConvertEmptyStringsToNull = $true
UseMSSQLSyntax = $true
SingleQuoteStyle = "''"
}
$SQLInsert = ConvertFrom-ExcelToSqlInsert @ConvertToSqlParams
2022-03-11 16:09:38 -06:00
dfinke
aa1b042767
Add -ReZip to Close-ExcelPackage like in Export-Excel #1111
2021-11-30 15:50:11 -05:00
dfinke
536cdaa841
tweaked spelling
2021-11-20 15:53:23 -05:00
Doug Finke
829d854c3d
Merge pull request #1102 from muschebubusche/AddSelectiveColumnImport
...
Add selective column import
2021-11-20 15:36:05 -05:00
muschebubusche
73fc96166c
Refactor selective column import
...
Move code into the function Get-PropertyNames and remove the rest.
Now it only replaces $Columns with $ImportColumns after a couple of checks. So the heavy work like arranging and getting the right values is done in the original way of Import-Excel.
2021-11-20 16:51:40 +01:00
muschebubusche
8f0fc7397d
Add example and automatic column arrangement
...
Add example and automatic column arrangement
2021-11-09 22:40:40 +01:00
Roy Ashbrook
4fa6fbda01
update warning msg for Read-OleDbData
2021-11-09 09:05:15 -05:00
Roy Ashbrook
ae31e9d39b
update skip/help msgs in invoke cmd
2021-11-08 18:08:45 -05:00
Roy Ashbrook
eabaab79c5
add ace check
2021-11-08 14:43:57 -05:00
Roy Ashbrook
7a8bbb9771
add to exported functions, formatting, fix typo.
2021-11-04 20:54:51 -04:00
Roy Ashbrook
85f2433ffc
Rename helper function to make it more helpful. =)
2021-11-04 10:44:14 -04:00
muschebubusche
62c8d74a59
Add selective column import
2021-11-03 23:15:18 +01:00
Roy Ashbrook
5e7b404daf
Add helper method
2021-11-03 10:35:22 -04:00
Roy Ashbrook
9417b25af1
move tests into test folder
2021-10-29 16:58:16 -04:00
Roy Ashbrook
a942f2133d
Add basic function, tests, and sample file
2021-10-29 13:21:52 -04:00
dfinke
23a2ac394f
Add try/catch, warning, and tests
2021-09-14 15:44:32 -04:00
dfinke
0192f4d822
Improved checks for Linux, Mac and PS 5.1 - #1056 , #1057
2021-07-30 19:21:37 -04:00
dfinke
c641eea10a
Improve auto-detection of data on the clipboard
2021-07-24 19:41:57 -04:00
dfinke
99de9a9854
Pass parameters from Read-Clipboard to implementation
2021-07-24 13:48:18 -04:00
dfinke
204b82144f
Refactor for testing
2021-07-24 13:01:32 -04:00
dfinke
91eefbd48b
Added Read-Clipboard
2021-07-24 11:20:04 -04:00
sporkabob
7026803415
Fix UNC paths for ConvertFrom-ExcelSheet
2021-05-13 15:22:15 -04:00
dfinke
88638a87a9
Added Get-ExcelFileSummary
2021-02-28 15:59:42 -05:00
Doug Finke
7f72aa9e86
GitBook: [master] 133 pages and 8 assets modified
2020-11-28 13:13:00 +00:00
jhoneill
282d650072
De-skipped some tests. Fixed a tiny bug in Add-Conditional formatting.
2020-11-02 18:01:23 +00:00
MikeyBronowski
66f6a5fa0b
typo
2020-06-21 22:53:35 +02:00
MikeyBronowski
a3921f5298
Parameters with casing not following standard
2020-06-21 22:34:46 +02:00
MikeyBronowski
11d591aad6
Standardising casing of parameter names
2020-06-20 23:03:27 +02:00
dfinke
070d40b5af
Move to Examples/Experimental
2020-05-23 17:10:54 -04:00
dfinke
8151ed4305
Remove help file
2020-05-23 17:06:12 -04:00
jhoneill
ae64a884fc
Put back asDate lost in merge
2020-03-16 12:10:51 +00:00
jhoneill
b584b22f5f
Merge remote-tracking branch 'upstream/master'
2020-03-16 11:43:10 +00:00
jhoneill
eb3a7d3f2d
Allow 0 or false to be a column heading
2020-03-16 11:15:40 +00:00
jhoneill
3130020e20
apply freeze to 2 rows if title present #795
2020-03-16 11:10:44 +00:00
dfinke
13454cce8e
Spike to fix #792
2020-02-29 15:55:49 -05:00
Justin Grote
f0ec5f4a96
Remove Write-Debug Performance Outputs
...
These outputs are unnecessary and can confuse someone observing other debug output.
2020-02-14 14:49:07 -08:00
jhoneill
17ec040055
fix message in merge, improve pester example
2019-12-31 19:38:28 +00:00
jhoneill
08fbfc35a3
Add Pester example. Make Hide and Hidden aliases
2019-12-28 21:16:01 +00:00
jhoneill
97611fc57c
Add -AsDate support to import-Excel and ConvertFrom-Excel sheet. Help upate
2019-12-22 18:04:42 +00:00
jhoneill
118330ea47
Make primary name "PivotTableChartType" (with alias chartType) in Export-Excel
2019-12-22 16:39:38 +00:00