1653018360
Sphinx depends on the sphinx-build
Python script. As such, it can be installed on any system with a working Python installation and PIP. On Windows, make sure that the Scripts
directory under the Python installation directory (e.g. C:\Python26\Scripts
) is configured in your PATH. On OS X/Linux, sphinx-build
has to be accessible from the command line.
The Sphinx documentation system can be obtained by issuing:
pip install Sphinx
Most Linux distributions will also provide it in a python-sphinx package (or similar).
You will also need ant for building the documentation. This can be installed on Mac OSX by using homebrew:
brew install ant
The OME documentation is organized into multiple folders:
omero
folder,ome-contributing, * the shared configuration and themes are under the common
folder.
The structure of each documentation folder follows the Sphinx system guidelines. A quick overview:
images
,downloads
,_build
,_static
,conf.py
,make
and make.bat
are held in Makefile
.A reference of reStructuredText (reST) is available at https://thomas-cokelaer.info. It is recommended to familiarise oneself with the syntax outlined there.
A tutorial covering Sphinx, which enhances working with reST documents, can be found at http://sphinx.pocoo.org.
The documentation may be built with make
or ant
. Note that ant
requires ant-contrib
to be on the classpath.
To build a set of documentation, first move to the documentation folder. To build the OMERO documentation:
cd omero/
To clean the build directory of any previous builds, use one of:
make clean
ant clean
To build the documentation locally in the form of HTML pages, use one of:
make html
ant html
To check the links (internal and external) of the documentation, use one of:
make linkcheck
ant linkcheck
By default, make
will build the documentation locally in the form of HTML pages.
The top-level directory Makefile also defines targets for building both the OMERO and Contributing sets of documentation at once.
To clean the build directories of any previous builds, use one of:
make clean
ant clean
To build the sets of documentation locally in the form of HTML pages, use one of:
make html
ant html
By default, running make
will build the documentation locally in the form of HTML pages.
Additional options for sphinx-build can be passed using the SPHINXOPTS
variable. The -W
option turns all warnings into errors:
SPHINXOPTS=-W make clean html
SPHINXOPTS=-W ant clean html
The release number of the OMERO documentation is UNKNOWN by default. To modify this value set the environment variable OMERO_RELEASE
e.g.:
cd omero && OMERO_RELEASE=5.4.0 make clean html
cd omero && OMERO_RELEASE=5.4.0 ant clean html
This variable needs to be set to build all the version-dependent content used in the system administrator documentation correctly.
The Contributing Developer documentation has the release version removed as the intention is to update these files as and when necessary, so that they always reflect our current practices.
To build the documentation as a zipped bundle, use:
ant zip
By default, running ant
will build as a zipped bundle.
From the top level directory:
OMERO_RELEASE=5.4.0 ant zip -Domero.release="5.4.0"
will generate the HTML documentation for OMERO and Contributing and bundle just the OMERO documentation into an OMERO.doc-5.4.0.zip under omero/_build.
From omero directory:
OMERO_RELEASE=5.4.0 ant zip -Domero.release="5.4.0"
will generate the HTML documentation for OMERO and create an OMERO.doc-5.4.0.zip under omero/_build.
Some parts of the OMERO documentation are auto-generated from the OMERO deliverables (e.g. templates, command-line output...). This auto-generation is usually done via Continuous Integration builds. To generate these components manually, download the OMERO.server and run the auto-generation script as:
WORSKSPACE=/path/to/OMERO/deliverables ./omero/autogen_docs
Part of the conventions used here is based on work by Benoît Bryon.
reST source file names should carry the rst
suffix and use lowercase alphanumeric characters and the -
(minus) symbol.
Most reST directives do not need indentation, unless contents or options have to be supplied. For consistency, please use 4 space indentation whenever needed. Do not use indentation for the start of directives (start them at the edge of the new line). Any content under a reST directive has to be indented the same way as the options.
Example:
.. toctree::
:maxdepth: 2
Some content here...
reST source files should use 78 lines for wrapping text. Please consult the manual of your favourite text editor to see how to switch on text wrapping.
Two new lines should be put before top-lined, top-level section names, i.e. before H1 and H2. One new line in any other case.
Example:
###############
Part title (H1)
###############
Introduction text.
(blank)
(blank)
******************
Chapter title (H2)
******************
Every reST source file should begin with an H2 (level two) title. H1 titles are reserved for the index files (index.rst
).
The following symbols should be used to create headings:
#
with top line for parts*
with top line for chapters=
for sections-
for subsections^
for subsubsections"
for paragraphsExample:
###############
Part Title (H1)
###############
H1 only in indexes.
******************
Chapter Title (H2)
******************
Sample file content.
********************
Another chapter (H2)
********************
Section title (H3)
==================
Subsection title (H4)
---------------------
Subsubsection title (H5)
^^^^^^^^^^^^^^^^^^^^^^^^
Paragraph title (H6)
""""""""""""""""""""
And some text.
Every page can be uniquely referenced using the sphinx doc directive. Like other directives, you can use the absolute file path, i.e. relative to the top-level directory: :doc: `/path/name-of-the-page`
or :doc: `link to my page </path/name-of-the-page>`
.
Only when a good reason exists, a document can also start with a label:
.. _page-label:
Title Of The Page
=================
Use of labels to refer to whole files is discouraged. References to labels above tables and images are encouraged. The :ref:
Sphinx role is advised over standard reST links, as it works across files and reference names are automatically generated (e.g. from caption of an image).
reST allows for two types of image embedding: using the image
and figure
directive. It is recommended to use the latter, as legends and captions can be added easier.
All images referenced in a reST document shall be placed in an images
folder in the top-level directory of the documentation.
Please do not use relative (../../../images/foo.jpg
) paths to refer to images. Sphinx does a good job at creating paths, so one can use /images/foo.jpg
Please do not use tables for collections of links and figures, and leave them solely for use as actual tables. While it can be used in HTML to shoehorn content into boxes, it does not work too well for other output.
Big tables (typically wider than 50 characters) should be managed as external files using the comma-separated values (CSV) format. These tables can then be included in the documentation with the csv-table
directive. If tables are saved using the tab-separated values (TSV) format use the delim
option to set the table delimiter to tab e.g.:
.. csv-table::
:widths: 20 80
:header-rows: 1
:file: searchfieldnames.tsv
:delim: tab
reST allows for using substitutions in cases where a piece of markup is used more than once, e.g.:
Please visit Python.org_
...
.. _Python.org: https://www.python.org
If a hyperlink appears only once, please use anonymous, "one-off" hyperlinks (two underscores):
`RFC 2396 <https://www.rfc-editor.org/rfc/rfc2396.txt>`__ and `RFC
2732 <https://www.rfc-editor.org/rfc/rfc2732.txt>`__ together
define the syntax of URIs.
Finally, please avoid using here
as the hyperlink name, as in:
(...) go `here <http://www.google.com>`_.
Please try to follow the rules outlined in Inline Markup. This allows for improving the semantics of the document elements.
.. note::
.. glossary::
. Each definition can be referenced anywhere in the documentation using the :term:
role and an entry will be added for every term in the generated index... seealso::
:menuselection: `Start --> Programs`
:envvar:
role. This role will add an entry for the variable in the generated index.:omerocmd: `admin start`
This role will render as omero admin start
and add an entry for the command in the generated index.:literal: `command`
or double back quoted markupproperty
directive and can be cross referenced e.g. using :property: `omero.data.dir`
:option:
and :guilabel:
Some substitutions have been implemented using rst_epilog
in conf.py
. They can be used in all pages of the documentation.
The table below lists targets for common hyperlinks.
Target name | Link |
---|---|
Python | https://www.python.org |
Matplotlib | https://matplotlib.org/ |
Pillow | https://pillow.readthedocs.org |
Hibernate | http://www.hibernate.org |
ZeroC | https://zeroc.com |
Ice | https://zeroc.com |
Jenkins | https://jenkins.io/ |
roadmap | https://trac.openmicroscopy.org/ome/roadmap |
Open Microscopy Environment | https://www.openmicroscopy.org |
Glencoe Software, Inc. | https://www.glencoesoftware.com/ |
PyPI | https://pypi.org |
The table below lists substitutions for common abbreviations. These substitutions use the :abbr:
Sphinx role meaning they are shown as tool-tip in HTML.
Name | Abbreviation | Explanation |
---|---|---|
|SSH| | SSH | Secure Shell |
|VM| | VM | Virtual Machine |
|OS| | OS | Operating System |
|SSL| | SSL | Secure Socket Layer |
|HDD| | HDD | Hard Disk Drive |
|CLI| | CLI | Command Line Interface |
The table below lists substitutions that can be used to create references to sections of the OMERO documentation.
Name | Path |
---|---|
|OmeroPy| | developers/Python |
|OmeroCpp| | developers/Cpp |
|OmeroJava| | developers/Java |
|OmeroMatlab| | developers/Matlab |
|OmeroApi| | developers/Modules/Api |
|OmeroWeb| | developers/Web |
|OmeroClients| | developers/GettingStarted |
|OmeroGrid| | sysadmins/grid |
|OmeroSessions| | developers/Server/Sessions |
|OmeroModel| | developers/Model |
|ExtendingOmero| | developers/ExtendingOmero |
|BlitzGateway| | developers/Python |
For the most up-to-date list, please consult conf.py
(section rst_epilog
).
Some URLs are widely used across the OME documentation. Using the Sphinx extlinks
extension, a dictionary of aliases to base URLs has been defined for the following:
:imagesc: `tag <tag>`
:ticket: `3442`
, displayed as <a>#3442</a>
:snapshot: `omero/myzip.zip`
:omero: `OMERO <>`
:downloads: `OMERO downloads <>`
For the most up-to-date list, please consult conf.py
(section extlinks
). Note that there are separate conf.py
files for each set of documentation, as well as a shared one under common/
.
Links to the OMERO source code hosted on Github can be created using the source
alias for single files, e.g. :source: `etc/grid/default.xml`
or the sourcedir
alias for directories, e.g. :sourcedir: `etc`
.
By default, these links will point at the code under the develop
branch or https://github.com/ome/openmicroscopy. To specify a specific fork and/or branch, set the SOURCE_USER and SOURCE_BRANCH environment variables, e.g.:
SOURCE_USER=sbesson SOURCE_BRANCH=my_branch make clean html
SOURCE_USER=sbesson SOURCE_BRANCH=my_branch ant clean html
Links to the continuous integration server can be created using the jenkins
alias for the main server, e.g. :jenkins: `Jenkins server <>`
, the jenkinsjob
alias for a given job, e.g. :jenkinsjob: `OMERO-4.4`
or the jenkinsview
alias for a given view, e.g. :jenkinsview: `4.4`
.
For the legacy OME mailing lists, to point at specific discussion threads, two aliases have been defined, ome-users
and ome-devel
, e.g. :ome-users:`ome-users thread <2009-June/001839.html>`
.
When a specific type of content (e.g. code snippet) repeats itself among many pages, it is advised to store it in a separate file without the default .txt
extension. This file can then be later included using the literalinclude
directive.
\http://your_host/webclient/login/
), unless you use the literal mark-up.Author: ome
Source Code: https://github.com/ome/omero-documentation
1653018360
Sphinx depends on the sphinx-build
Python script. As such, it can be installed on any system with a working Python installation and PIP. On Windows, make sure that the Scripts
directory under the Python installation directory (e.g. C:\Python26\Scripts
) is configured in your PATH. On OS X/Linux, sphinx-build
has to be accessible from the command line.
The Sphinx documentation system can be obtained by issuing:
pip install Sphinx
Most Linux distributions will also provide it in a python-sphinx package (or similar).
You will also need ant for building the documentation. This can be installed on Mac OSX by using homebrew:
brew install ant
The OME documentation is organized into multiple folders:
omero
folder,ome-contributing, * the shared configuration and themes are under the common
folder.
The structure of each documentation folder follows the Sphinx system guidelines. A quick overview:
images
,downloads
,_build
,_static
,conf.py
,make
and make.bat
are held in Makefile
.A reference of reStructuredText (reST) is available at https://thomas-cokelaer.info. It is recommended to familiarise oneself with the syntax outlined there.
A tutorial covering Sphinx, which enhances working with reST documents, can be found at http://sphinx.pocoo.org.
The documentation may be built with make
or ant
. Note that ant
requires ant-contrib
to be on the classpath.
To build a set of documentation, first move to the documentation folder. To build the OMERO documentation:
cd omero/
To clean the build directory of any previous builds, use one of:
make clean
ant clean
To build the documentation locally in the form of HTML pages, use one of:
make html
ant html
To check the links (internal and external) of the documentation, use one of:
make linkcheck
ant linkcheck
By default, make
will build the documentation locally in the form of HTML pages.
The top-level directory Makefile also defines targets for building both the OMERO and Contributing sets of documentation at once.
To clean the build directories of any previous builds, use one of:
make clean
ant clean
To build the sets of documentation locally in the form of HTML pages, use one of:
make html
ant html
By default, running make
will build the documentation locally in the form of HTML pages.
Additional options for sphinx-build can be passed using the SPHINXOPTS
variable. The -W
option turns all warnings into errors:
SPHINXOPTS=-W make clean html
SPHINXOPTS=-W ant clean html
The release number of the OMERO documentation is UNKNOWN by default. To modify this value set the environment variable OMERO_RELEASE
e.g.:
cd omero && OMERO_RELEASE=5.4.0 make clean html
cd omero && OMERO_RELEASE=5.4.0 ant clean html
This variable needs to be set to build all the version-dependent content used in the system administrator documentation correctly.
The Contributing Developer documentation has the release version removed as the intention is to update these files as and when necessary, so that they always reflect our current practices.
To build the documentation as a zipped bundle, use:
ant zip
By default, running ant
will build as a zipped bundle.
From the top level directory:
OMERO_RELEASE=5.4.0 ant zip -Domero.release="5.4.0"
will generate the HTML documentation for OMERO and Contributing and bundle just the OMERO documentation into an OMERO.doc-5.4.0.zip under omero/_build.
From omero directory:
OMERO_RELEASE=5.4.0 ant zip -Domero.release="5.4.0"
will generate the HTML documentation for OMERO and create an OMERO.doc-5.4.0.zip under omero/_build.
Some parts of the OMERO documentation are auto-generated from the OMERO deliverables (e.g. templates, command-line output...). This auto-generation is usually done via Continuous Integration builds. To generate these components manually, download the OMERO.server and run the auto-generation script as:
WORSKSPACE=/path/to/OMERO/deliverables ./omero/autogen_docs
Part of the conventions used here is based on work by Benoît Bryon.
reST source file names should carry the rst
suffix and use lowercase alphanumeric characters and the -
(minus) symbol.
Most reST directives do not need indentation, unless contents or options have to be supplied. For consistency, please use 4 space indentation whenever needed. Do not use indentation for the start of directives (start them at the edge of the new line). Any content under a reST directive has to be indented the same way as the options.
Example:
.. toctree::
:maxdepth: 2
Some content here...
reST source files should use 78 lines for wrapping text. Please consult the manual of your favourite text editor to see how to switch on text wrapping.
Two new lines should be put before top-lined, top-level section names, i.e. before H1 and H2. One new line in any other case.
Example:
###############
Part title (H1)
###############
Introduction text.
(blank)
(blank)
******************
Chapter title (H2)
******************
Every reST source file should begin with an H2 (level two) title. H1 titles are reserved for the index files (index.rst
).
The following symbols should be used to create headings:
#
with top line for parts*
with top line for chapters=
for sections-
for subsections^
for subsubsections"
for paragraphsExample:
###############
Part Title (H1)
###############
H1 only in indexes.
******************
Chapter Title (H2)
******************
Sample file content.
********************
Another chapter (H2)
********************
Section title (H3)
==================
Subsection title (H4)
---------------------
Subsubsection title (H5)
^^^^^^^^^^^^^^^^^^^^^^^^
Paragraph title (H6)
""""""""""""""""""""
And some text.
Every page can be uniquely referenced using the sphinx doc directive. Like other directives, you can use the absolute file path, i.e. relative to the top-level directory: :doc: `/path/name-of-the-page`
or :doc: `link to my page </path/name-of-the-page>`
.
Only when a good reason exists, a document can also start with a label:
.. _page-label:
Title Of The Page
=================
Use of labels to refer to whole files is discouraged. References to labels above tables and images are encouraged. The :ref:
Sphinx role is advised over standard reST links, as it works across files and reference names are automatically generated (e.g. from caption of an image).
reST allows for two types of image embedding: using the image
and figure
directive. It is recommended to use the latter, as legends and captions can be added easier.
All images referenced in a reST document shall be placed in an images
folder in the top-level directory of the documentation.
Please do not use relative (../../../images/foo.jpg
) paths to refer to images. Sphinx does a good job at creating paths, so one can use /images/foo.jpg
Please do not use tables for collections of links and figures, and leave them solely for use as actual tables. While it can be used in HTML to shoehorn content into boxes, it does not work too well for other output.
Big tables (typically wider than 50 characters) should be managed as external files using the comma-separated values (CSV) format. These tables can then be included in the documentation with the csv-table
directive. If tables are saved using the tab-separated values (TSV) format use the delim
option to set the table delimiter to tab e.g.:
.. csv-table::
:widths: 20 80
:header-rows: 1
:file: searchfieldnames.tsv
:delim: tab
reST allows for using substitutions in cases where a piece of markup is used more than once, e.g.:
Please visit Python.org_
...
.. _Python.org: https://www.python.org
If a hyperlink appears only once, please use anonymous, "one-off" hyperlinks (two underscores):
`RFC 2396 <https://www.rfc-editor.org/rfc/rfc2396.txt>`__ and `RFC
2732 <https://www.rfc-editor.org/rfc/rfc2732.txt>`__ together
define the syntax of URIs.
Finally, please avoid using here
as the hyperlink name, as in:
(...) go `here <http://www.google.com>`_.
Please try to follow the rules outlined in Inline Markup. This allows for improving the semantics of the document elements.
.. note::
.. glossary::
. Each definition can be referenced anywhere in the documentation using the :term:
role and an entry will be added for every term in the generated index... seealso::
:menuselection: `Start --> Programs`
:envvar:
role. This role will add an entry for the variable in the generated index.:omerocmd: `admin start`
This role will render as omero admin start
and add an entry for the command in the generated index.:literal: `command`
or double back quoted markupproperty
directive and can be cross referenced e.g. using :property: `omero.data.dir`
:option:
and :guilabel:
Some substitutions have been implemented using rst_epilog
in conf.py
. They can be used in all pages of the documentation.
The table below lists targets for common hyperlinks.
Target name | Link |
---|---|
Python | https://www.python.org |
Matplotlib | https://matplotlib.org/ |
Pillow | https://pillow.readthedocs.org |
Hibernate | http://www.hibernate.org |
ZeroC | https://zeroc.com |
Ice | https://zeroc.com |
Jenkins | https://jenkins.io/ |
roadmap | https://trac.openmicroscopy.org/ome/roadmap |
Open Microscopy Environment | https://www.openmicroscopy.org |
Glencoe Software, Inc. | https://www.glencoesoftware.com/ |
PyPI | https://pypi.org |
The table below lists substitutions for common abbreviations. These substitutions use the :abbr:
Sphinx role meaning they are shown as tool-tip in HTML.
Name | Abbreviation | Explanation |
---|---|---|
|SSH| | SSH | Secure Shell |
|VM| | VM | Virtual Machine |
|OS| | OS | Operating System |
|SSL| | SSL | Secure Socket Layer |
|HDD| | HDD | Hard Disk Drive |
|CLI| | CLI | Command Line Interface |
The table below lists substitutions that can be used to create references to sections of the OMERO documentation.
Name | Path |
---|---|
|OmeroPy| | developers/Python |
|OmeroCpp| | developers/Cpp |
|OmeroJava| | developers/Java |
|OmeroMatlab| | developers/Matlab |
|OmeroApi| | developers/Modules/Api |
|OmeroWeb| | developers/Web |
|OmeroClients| | developers/GettingStarted |
|OmeroGrid| | sysadmins/grid |
|OmeroSessions| | developers/Server/Sessions |
|OmeroModel| | developers/Model |
|ExtendingOmero| | developers/ExtendingOmero |
|BlitzGateway| | developers/Python |
For the most up-to-date list, please consult conf.py
(section rst_epilog
).
Some URLs are widely used across the OME documentation. Using the Sphinx extlinks
extension, a dictionary of aliases to base URLs has been defined for the following:
:imagesc: `tag <tag>`
:ticket: `3442`
, displayed as <a>#3442</a>
:snapshot: `omero/myzip.zip`
:omero: `OMERO <>`
:downloads: `OMERO downloads <>`
For the most up-to-date list, please consult conf.py
(section extlinks
). Note that there are separate conf.py
files for each set of documentation, as well as a shared one under common/
.
Links to the OMERO source code hosted on Github can be created using the source
alias for single files, e.g. :source: `etc/grid/default.xml`
or the sourcedir
alias for directories, e.g. :sourcedir: `etc`
.
By default, these links will point at the code under the develop
branch or https://github.com/ome/openmicroscopy. To specify a specific fork and/or branch, set the SOURCE_USER and SOURCE_BRANCH environment variables, e.g.:
SOURCE_USER=sbesson SOURCE_BRANCH=my_branch make clean html
SOURCE_USER=sbesson SOURCE_BRANCH=my_branch ant clean html
Links to the continuous integration server can be created using the jenkins
alias for the main server, e.g. :jenkins: `Jenkins server <>`
, the jenkinsjob
alias for a given job, e.g. :jenkinsjob: `OMERO-4.4`
or the jenkinsview
alias for a given view, e.g. :jenkinsview: `4.4`
.
For the legacy OME mailing lists, to point at specific discussion threads, two aliases have been defined, ome-users
and ome-devel
, e.g. :ome-users:`ome-users thread <2009-June/001839.html>`
.
When a specific type of content (e.g. code snippet) repeats itself among many pages, it is advised to store it in a separate file without the default .txt
extension. This file can then be later included using the literalinclude
directive.
\http://your_host/webclient/login/
), unless you use the literal mark-up.Author: ome
Source Code: https://github.com/ome/omero-documentation
1646305020
Sphinx
Sphinx is a tool that makes it easy to create intelligent and beautiful documentation for Python projects (or other documents consisting of multiple reStructuredText sources), written by Georg Brandl. It was originally created for the new Python documentation, and has excellent facilities for Python project documentation, but C/C++ is supported as well, and more languages are planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths come from the power and straightforwardness of reStructuredText and its parsing and translating suite, the Docutils.
Among its features are the following:
For more information, refer to the the documentation.
Sphinx is published on PyPI and can be installed from there:
pip install -U sphinx
We also publish beta releases:
pip install -U --pre sphinx
If you wish to install Sphinx for development purposes, refer to the contributors guide.
Documentation is available from sphinx-doc.org.
Please adhere to our code of conduct.
Continuous testing is provided by Travis (for unit tests and style checks on Linux), AppVeyor (for unit tests on Windows), and CircleCI (for large processes like TeX compilation).
For information on running tests locally, refer to the contributors guide.
Refer to the contributors guide.
Releases are signed with following keys:
Author: Sphinx-doc
Source Code: https://github.com/sphinx-doc/sphinx
License: View license
1618472877
On this site, you’ll see working methods to repair the “can’t start Microsoft Outlook” issue. Additionally, these methods can enable you to get up your Outlook and running again without any mistakes.
Now, let us see how it is possible to fix and prevent a much worse situation when you can’t start Outlook. But first, we’re beginning from the reason and symptoms of the mistake.
Recover your Outlook with Outlook PST Recovery.
Which are the causes and symptom of the “Don’t start Microsoft Outlook” mistake?
The most important symptom of the matter is quite clear and readily identifiable. After you click on Outlook you’ll discover a dialogue box appears and can be hanging for a little while, then you receive the “can’t start Microsoft view. cannot open the outlook window. The set of connections can’t be opened” error.
Can’t start Microsoft Outlook
In case the file has corrupted then you are going to discover that its dimensions become kb.
Additionally, there’s absolutely no specific cause for this mistake, but all versions of MS Outlook from 2003 into Outlook 2019 might be impacted. Anyhow, whatever the motive is, the result is the same – you can’t start Outlook. . And the answers for this query are given below.
Workarounds to Solve “Don’t start Microsoft Outlook” problem
Now you understand the reasons why causes “can’t start Microsoft outlook. Cannot open the view window. The collection of folders cannot be opened” problem. Therefore, let us see how to have them repaired. Below there are 2 workarounds that fix this situation.
1. Recover the Navigation Pane configuration file
Typically it’s the corrupt Navigation Pane settings file that limits Microsoft Outlook from the beginning, so the first thing you have to do would be to regain it. Here is how you can do this task:
Click on the Start button.
Following that, Compose the"outlook.exe /resetnavpane" control and click on OK.
If you discover any difficulty and unable to recoup the Navigation pane settings document, then attempt to manually delete the XML file which stores the navigation pane configurations. To do this, go using the next measures:
It’ll open the folder in which MS Outlook Setup files are saved.
Cannot start Microsoft Outlook
2. Repair your Outlook data files with the help of Scanpst.exe.
Then default Outlook data file PST may be damaged or deleted, that’s the reason you can’t start Outlook. The document Outlook.pst isn’t a personal folders file"
To do so, do the Actions listed below:
Below you’ll discover Scanpst.exe from the listing. Double click it.
Additionally, you can go via Start and kind scanpst.exe from the Search box.
Following that, you’ll discover a window click the Browse button to choose your default Outlook.pst file.
After a couple of minutes, your document is going to be fixed.
Hopefully, your document got fixed. If not Then You Need to attempt the alternative provided below:
The majority of the time it fixes the documents. However, if the corruption is intense then this instrument fails. In these situations, you want to utilize PST File Retrieval designed by Mailconvertertools. A novice user can utilize this tool and fix their own Outlook PST files. It’s the very best way to recuperate and fix Outlook PST files and it simplifies all the constraints of the Inbox Repair Tool.
Conclusion
This technical manual is all about how to resolve “can’t start Microsoft outlook. Cannot open the view window. The collection of folders cannot be opened” I am hoping that your issue has been solved. When there’s any difficulty regarding any measure then don’t hesitate to contact.
#cannot open the outlook window #the set of folders cannot be opened outlook #outlook the set of folders cannot be opened #the set of folders cannot be opened outlook 2016 #outlook the information store cannot be opened #outlook information store could not be opened
1640278800
Automate Excel via PowerShell without having Excel installed. Runs on Windows, Linux and MAC. Creating Tables, Pivot Tables, Charts and much more has just become a lot easier.
Open ImportExcel
as a remote repo in VS Code, without cloning it.
CI System | Environment | Status |
---|---|---|
Azure DevOps | Windows | |
Azure DevOps | Windows (Core) | |
Azure DevOps | Ubuntu | |
Azure DevOps | macOS |
Install from the PowerShell Gallery.
Install-Module -Name ImportExcel
If this project helped you reduce the time to get your job done, let me know, send a coffee.
Installation -
PowerShell V5 and Later
You can install the ImportExcel
module directly from the PowerShell Gallery
[Recommended] Install to your personal PowerShell Modules folder
Install-Module ImportExcel -scope CurrentUser
[Requires Elevation] Install for Everyone (computer PowerShell Modules folder)
Install-Module ImportExcel
Big thanks to Illy for taking the Azure DevOps CI to the next level. Improved badges, improved matrix for cross platform OS testing and more.
Plus, wiring the PowerShell ScriptAnalyzer Excel report we built into each run as an artifact.
ProviderPath
. Thanks Trevor WalkerGet-ExcelFileSummary
- Gets summary information on an Excel file like number of rows, columns, and moredir . -r *.xlsx | Get-ExcelFileSummary | ft
ExcelFile WorksheetName Rows Columns Address Path
--------- ------------- ---- ------- ------- ----
Grades.xlsx Sheet1 21 3 A1:C21 D:\temp\ExcelYouTube\Grades
GradesAverage.xlsx Sheet1 21 5 A1:E21 D:\temp\ExcelYouTube\Grades
AllShifts.xlsx Sheet1 21 2 A1:B21 D:\temp\ExcelYouTube\SeparateData
Shift_1.xlsx Sheet1 10 2 A1:B10 D:\temp\ExcelYouTube\SeparateData
Shift_2.xlsx Sheet1 8 2 A1:B8 D:\temp\ExcelYouTube\SeparateData
Shift_3.xlsx Sheet1 5 2 A1:B5 D:\temp\ExcelYouTube\SeparateData
Shifts.xlsx Shift_1 10 2 A1:B10 D:\temp\ExcelYouTube\SeparateData
Shifts.xlsx Shift_2 8 2 A1:B8 D:\temp\ExcelYouTube\SeparateData
Export-MultipleExcelSheets
from psm1 to Examples/ExperimentalFixes, Updates and new Examples
-AsDate
support to Import-Excel
and ConvertFrom-ExcelSheet
PS1 | Description | Link |
---|---|---|
Pester-To-XLSx | Runs Pester, collects the results, enriches it, and exports it to Excel | Pester-To-XLSx.ps1 |
DSUM | Sums up the numbers in a field (column) of records in a list or database that match conditions that you specify. | DSUM.ps1 |
VLookup | Setups up a sheet, you enter the name of an item and the amount is looked up | VLOOKUP.ps1 |
More infrastructure improvements.
psm1
Thanks to James O'Neill for the refactor and Illy on the continuous integration.
Thanks again to the community for making this module even better.
Thank you uSlackrill
Get-ExcelColumnName
Thank you jhoneill
Other
This is now using the latest version of EPPlus. Unit tests are updated and passing, if you hit problems, please open an issue. You can rollback to an older version from the PowerShell Gallery if you are blocked.
Sensible parameter defaults, make your life easier and gets things done faster.
TableStyle
Get-Process | select Company, Name, Handles | Export-Excel
Thank you jhoneill.
ClearAll
to Set-ExcelRange
passwords
pwsh
. The EPPlus library does not support these dotnet core APIs at this time.Thank you to James O'Neill
New-ExcelStyle
, plus -Style
to Export-Excel
and -Merge
to Set-ExcelRange
Thank you to James O'Neill
Open-ExcelPackage
), using this avoids re-reading the whole file when importing multiple parts of it. To allow multiple read operations Import-Excel
does NOT close the package, and you should use Close-ExcelPackage -noSave
to close it.Thank you to James O'Neill for the optimizations, and refactoring leading to a ~10x speed increase. Thanks to ili101 for earlier PRs that provided the ground work for this.
Export-Excel
see #506 and #555. This has meant taking code in Add-CellValue back into process block of Export-Excel
, as the overhead of calling the function was a lot greater than time executing the code inside it. Blog post to follow. Some tests are showing a ~10x speed increase. #572 was about a broken #region tag in this part of the code and that has been cleaned up in the process.Export-Excel
now has an -InputObject parameter (this was previously -TargetData , which is now an alias for InputObject). If the inputobject
is an array, each item will be inserted, so you can run export-excel -inputobject $x
rather than $x | Export-Excel
, and if it is a system.data.datatable
object it will be inserted directly rather than cell-by-cell. Send-SQLDataToExcel
takes advantage of this new functionality. There are simple tests for these new itemsExport-Excel
previously assumed -Now
if there were no other parameters, it will now assume -Now
if there is no -Path
or -ExcelPackage
. The .PSD1 file now itemizes the items exported by the module #557Thank you to James O'Neill for the great additions.
tests
.Copy-ExcelWorksheet
, close the $Stream
Added parameters -GroupDateRow and -GroupDatePart & -GroupNumericRow, -GroupNumericMin, -GroupNumericMax and -GroupNumericInterval
to Add-PivotTable and New-PivotTableDefinition. The date ones gather dates of the same year and/or quarter and/or month and/or day etc.
the number ones group numbers into bands, starting at Min, and going up steps specified by Interval. Added tests and help for these.
Set-ExcelRow and Set-ExcelColumn now check that the worksheet name they passed exists in the workbook.
AddMultiWorkSheet.ps1
example. Much appreciated!$Excel = Open-ExcelPackage -path test.xlsx ; $excel.sheet1
will return the sheet named "sheet1" $Excel.SheetName
is a script property which is defined as $this.workbook.worksheets["Sheetname"]
Set-ExcelColumn
, Set-Row to Set-ExcelRow
, and Set-Format, to Set-ExcelRange
. Added aliases so the old names still work.Set-ExcelRange
(or set-Format) used "Address" and "Range" incorrectly. There is now a single parameter -Range
, with an alias of "Address". If the worksheet parameter is present, the function accepts a string specifying cells ("A1:Z10") or a the name of range. Without the worksheet it accepts an object representing a named range or a Table; or a tables's address, or part of the worksheet.cells collection.Add-ConditionalFormatting
: Used "address" correctly, and it will accept ranges in the address parameter (range is now an alias for address). It now wraps conditional value strings in quotes when needed (for = <= >= operations string needs to be in double quotes see issue #424). Parameter intellisense has been improved. There are new parameters: -StopIfTrue
and -Priority
and support for using the -Reverse
parameter with Color-scale rules (issue #430). Booleans in the sheet are now supported as the value for a condition. Also brought the two different kinds of condition together inside Export-Excel, and fixed a bug where named-ranges didn't work in some places. In New-ConditionalText
, more types of conditional format are supported, and the argument completer for -ConditionalTextColor was missing and has been added.Export-Excel
(see issue #426)sExport-Excel
has better checking of Table and PivotTable names (for uniqueness) and a new test in quick charts that there is suitable data for charting. It also accepts hash tables for chart, pivot table and conditional formatting parameters which are splatted into the functions which add these.Add-ExcelName
, and logic for adding a table into a function named Add-ExcelTable
; this is to make it easier to do these things independently of Export-Excel, but minimize duplication. The Add-ExcelTable command has extra parameters to toggle the options from table tools toolbar (show totals etc.) and set options in the totals row.Add-PivotTable
has some new parameters -PassThru
returns the pivot table (e.g. to allow names /sort orders of data series to be tweaked ) -Address
allows Pivot to be placed on an existing sheet; -PivotTableStyle
allows a change from "Medium6", -PivotNumberFormat
formats data cells. It is more flexible about how the source data is specified - copying the range options in Set-ExcelRange. Add-ExcelChart
is now used for creating PivotCharts, and -PivotChartDefinition
allows a definition created with New-ExcelChartDefinition
to be used when setting up a PivotTable. This opens up all the things that Add-ExcelChart can do without duplicating the parameters on Add-Pivot table and Export-Excel. Definition, TableStyle, Numberformat and ChartDefiniton can be used in New-PivotTableDefinition
.Add-ExcelChart
now supports -PassThru to return the chart for tweaking after creation; there is now a -PivotTable parameter to allow Add-PivotTable to call the code in Add-ExcelChart. And in New-ExcelChartDefinition
Legend parameters (for size, bold & position ) are now supportedCompare-Worksheet
(introduced in 5.0) uses the built in Compare-object
command, to output a command-line DIFF and/or color the worksheet to show differences. For example, if my sheets are Windows services the extra rows or rows where the startup status has changed get highlighted
Merge-Worksheet
(also introduced in 5.0) joins two lumps, side by highlighting the differences. So now I can have server A's services and Server Bs Services on the same page. I figured out a way to do multiple sheets. So I can have Server A,B,C,D on one page :-) that is Merge-MultpleSheets
For this release I've fixed heaven only knows how many typos and proof reading errors in the help for these two, the only code change is to fix a bug if two worksheets have different names, are in different files and the Comparison sends the delta in the second back before the one in first, then highlighting changed properties could throw an error. Correcting the spelling of Merge-MultipleSheets is potentially a breaking change (and it is still plural!)
also fixed a bug in compare worksheet where color might not be applied correctly when the worksheets came from different files and had different name.
Join-Worksheet
is new for this release. At it's simplest it copies all the data in Worksheet A to the end of Worksheet B
-PivotFilter
and -PivotDataToColumn
, -ChartHeight/width
-ChartRow/Column
, -ChartRow/ColumnPixelOffset
parameters-address
parameter had to be named, although the examples in export-excel
help showed it working by position (which works now. )Compare-Worksheet
4/22/2018
Thanks to the community yet again
[PSPlot]
as OutputType. Fixes it throwing an errorConvertEmptyStringsToNull
to the function ConvertFrom-ExcelToSQLInsert
4/10/2018
-New parameter -ReZip
. It ReZips the xlsx so it can be imported to PowerBI
Thanks to Justin Grote for finding and fixing the error that Excel files created do not import to PowerBI online. Plus, thank you to CrashM for confirming the fix.
Super helpful!
3/31/2018
Set-Format
value
and formula
$data = @"
From,To,RDollars,RPercent,MDollars,MPercent,Revenue,Margin
Atlanta,New York,3602000,.0809,955000,.09,245,65
New York,Washington,4674000,.105,336000,.03,222,16
Chicago,New York,4674000,.0804,1536000,.14,550,43
New York,Philadelphia,12180000,.1427,-716000,-.07,321,-25
New York,San Francisco,3221000,.0629,1088000,.04,436,21
New York,Phoneix,2782000,.0723,467000,.10,674,33
"@
-PivotFilter
parameter, allows you to set up a filter so you can drill down into a subset of the overall dataset.$data =@"
Region,Area,Product,Units,Cost
North,A1,Apple,100,.5
South,A2,Pear,120,1.5
East,A3,Grape,140,2.5
West,A4,Banana,160,3.5
North,A1,Pear,120,1.5
North,A1,Grape,140,2.5
"@
3/14/2018
Thank you to James O'Neill, fixed bugs with ChangeDatabase parameter which would prevent it working
Added -Force to New-Alias
Add example to set the background color of a column
Supports excluding Row Grand Totals for PivotTables
Allow xlsm files to be read
Fix Set-Column.ps1
, Set-Row.ps1
, SetFormat.ps1
, formatting.ps1
$false and $BorderRound
1/1/2018
Added switch [Switch]$NoTotalsInPivot
. Allows hiding of the row totals in the pivot table.
Thanks you to jameseholt for the request.
get-process | where Company | select Company, Handles, WorkingSet |
export-excel C:\temp\testColumnGrand.xlsx `
-Show -ClearSheet -KillExcel `
-IncludePivotTable -PivotRows Company -PivotData @{"Handles"="average"} -NoTotalsInPivot
ChartType
for the Pivot Table Chart, would throw an error11/23/2017
More great additions and thanks to James O'Neill
Convert-XlRangeToImage
Gets the specified part of an Excel file and exports it as an image10/30/2017
Huge thanks to James O'Neill. PowerShell aficionado. He always brings a flare when working with PowerShell. This is no exception.
(Check out the examples help Export-Excel -Examples
)
Package
allows an ExcelPackage object returned by -passThru
to be passed inExcludeProperty
to remove unwanted properties without needing to go through select-object
Append
code to read the existing headers and move the insertion point below the current dataClearSheet
which removes the worksheet and any past data-InsertPivotChart
is specified it implies -InsertPivotTable
(Check out the examples help Export-Excel -Examples
)
Export-Charts
(requires Excel to be installed) - Export Excel charts out as JPG filesAdd-ConditionalFormatting
Adds conditional formatting to worksheetSet-Format
Applies Number, font, alignment and color formatting to a range of Excel CellsColorCompletion
an argument completer for Colors
for params across functionsI also worked out the parameters so you can do this, which is the same as passing -Now
. It creates an Excel file name for you, does an auto fit and sets up filters.
ps | select Company, Handles | Export-Excel
10/13/2017
Added New-PivotTableDefinition
. You can create and wire up a PivotTable to a WorkSheet. You can also create as many PivotTable Worksheets to point a one Worksheet. Or, you create many Worksheets and many corresponding PivotTable Worksheets.
Here you can create a WorkSheet with the data from Get-Service
. Then create four PivotTables, pointing to the data each pivoting on a different dimension and showing a different chart
$base = @{
SourceWorkSheet = 'gsv'
PivotData = @{'Status' = 'count'}
IncludePivotChart = $true
}
$ptd = [ordered]@{}
$ptd += New-PivotTableDefinition @base servicetype -PivotRows servicetype -ChartType Area3D
$ptd += New-PivotTableDefinition @base status -PivotRows status -ChartType PieExploded3D
$ptd += New-PivotTableDefinition @base starttype -PivotRows starttype -ChartType BarClustered3D
$ptd += New-PivotTableDefinition @base canstop -PivotRows canstop -ChartType ConeColStacked
Get-Service | Export-Excel -path $file -WorkSheetname gsv -Show -PivotTableDefinition $ptd
10/4/2017
Thanks to https://github.com/ili101 :
10/2/2017
Thanks to Jeremy Brun Fixed issues related to use of -Title parameter combined with column formatting parameters.
9/28/2017 (Version 4.0.1)
Added a new parameter called Password
to import password protected files
Added even more Pester
tests for a more robust and bug free module
Renamed parameter 'TopRow' to 'StartRow'
This allows us to be more concise when new parameters ('StartColumn', ..) will be added in the future Your code will not break after the update, because we added an alias for backward compatibility
Special thanks to robinmalik for providing us with the code to implement this new feature. A high five to DarkLite1 for the implementation.
9/12/2017 (Version 4.0.0)
Super thanks and hat tip to DarkLite1. There is now a new and improved Import-Excel
, not only in functionality, but also improved readability, examples and more. Not only that, he's been running it in production in his company for a number of weeks!
Added Update-FirstObjectProperties
Updates the first object to contain all the properties of the object with the most properties in the array. Check out the help.
Breaking Changes: Due to a big portion of the code that is rewritten some slightly different behavior can be expected from the Import-Excel
function. This is especially true for importing empty Excel files with or without using the TopRow
parameter. To make sure that your code is still valid, please check the examples in the help or the accompanying Pester
test file.
Moving forward, we are planning to include automatic testing with the help of Pester
, Appveyor
and Travis
. From now on any changes in the module will have to be accompanied by the corresponding Pester
tests to avoid breakages of code and functionality. This is in preparation for new features coming down the road.
7/3/2017
Thanks to Mikkel Nordberg. He contributed a ConvertTo-ExcelXlsx
. To use it, Excel needs to be installed. The function converts the older Excel file format ending in .xls
to the new format ending in .xlsx
.
6/15/2017
Huge thank you to DarkLite1! Refactoring of code, adding help, adding features, fixing bugs. Specifically this long outstanding one:
Export-Excel: Numeric values not correct
It is fantastic to work with people like DarkLite1
in the community, to help make the module so much better. A hat to you.
Another shout out to Damian Reeves! His questions turn into great features. He asked if it was possible to import an Excel worksheet and transform the data into SQL INSERT
statements. We can now answer that question with a big YES!
ConvertFrom-ExcelToSQLInsert People .\testSQLGen.xlsx
INSERT INTO People ('First', 'Last', 'The Zip') Values('John', 'Doe', '12345');
INSERT INTO People ('First', 'Last', 'The Zip') Values('Jim', 'Doe', '12345');
INSERT INTO People ('First', 'Last', 'The Zip') Values('Tom', 'Doe', '12345');
INSERT INTO People ('First', 'Last', 'The Zip') Values('Harry', 'Doe', '12345');
INSERT INTO People ('First', 'Last', 'The Zip') Values('Jane', 'Doe', '12345');
Use the underlying ConvertFrom-ExcelData
function and you can use a scriptblock to format the data however you want.
ConvertFrom-ExcelData .\testSQLGen.xlsx {
param($propertyNames, $record)
$reportRecord = @()
foreach ($pn in $propertyNames) {
$reportRecord += "{0}: {1}" -f $pn, $record.$pn
}
$reportRecord +=""
$reportRecord -join "`r`n"
}
Generates
First: John
Last: Doe
The Zip: 12345
First: Jim
Last: Doe
The Zip: 12345
First: Tom
Last: Doe
The Zip: 12345
First: Harry
Last: Doe
The Zip: 12345
First: Jane
Last: Doe
The Zip: 12345
2/2/2017
Thank you to DarkLite1 for more updates
CurrentInfo
to use the system settings2/14/2017
Big thanks to DarkLite1 for some great updates
-DataOnly
switch added to Import-Excel
. When used it will only generate objects for rows that contain text values, not for empty rows or columns.
Get-ExcelWorkBookInfo
- retrieves information of an Excel workbook.
Get-ExcelWorkbookInfo .\Test.xlsx
CorePropertiesXml : #document
Title :
Subject :
Author : Konica Minolta User
Comments :
Keywords :
LastModifiedBy : Bond, James (London) GBR
LastPrinted : 2017-01-21T12:36:11Z
Created : 17/01/2017 13:51:32
Category :
Status :
ExtendedPropertiesXml : #document
Application : Microsoft Excel
HyperlinkBase :
AppVersion : 14.0300
Company : Secret Service
Manager :
Modified : 10/02/2017 12:45:37
CustomPropertiesXml : #document
12/22/2016
-Now
switch. This short cuts the process, automatically creating a temp file and enables the -Show
, -AutoFilter
, -AutoSize
switches.Get-Process | Select Company, Handles | Export-Excel -Now
Get-Process |
Select-Object Company,Handles,PM, NPM|
Export-Excel $xlfile -Show -AutoSize -CellStyleSB {
param(
$workSheet,
$totalRows,
$lastColumn
)
Set-CellStyle $workSheet 1 $LastColumn Solid Cyan
foreach($row in (2..$totalRows | Where-Object {$_ % 2 -eq 0})) {
Set-CellStyle $workSheet $row $LastColumn Solid Gray
}
foreach($row in (2..$totalRows | Where-Object {$_ % 2 -eq 1})) {
Set-CellStyle $workSheet $row $LastColumn Solid LightGray
}
}
9/28/2016
Fixed PowerShell 3.0 compatibility. Thanks to headsphere. He used $obj.PSObject.Methods[$target]
syntax to make it backward compatible. PS v4.0 and later allow $obj.$target
.
Thank you to xelsirko for fixing - Import-module importexcel gives version warning if started inside background job
8/12/2016
Fixed reading the headers from cells, moved from using Text
property to Value
property.
7/30/2016
Copy-ExcelWorksheet
. Let's you copy a work sheet from one Excel workbook to another.7/21/2016
Import-Excel
#687/7/2016
Attila Mihalicz fixed two issues
-TableName
parameter is usedThanks Attila.
7/1/2016
Import-Excel
change Resolve-Path to return ProviderPath for use with UNC6/01/2016
Import-Html
and Get-HtmlTable
Import-UPS
and Import-USPS
. Pass in a valid tracking # and it scrapes the page for the delivery details4/30/2016
Huge thank you to Willie Möller
4/18/2016
Thanks to Paul Williams for this feature. Now data can be transposed to columns for better charting.
$file = "C:\Temp\ps.xlsx"
rm $file -ErrorAction Ignore
ps |
where company |
select Company,PagedMemorySize,PeakPagedMemorySize |
Export-Excel $file -Show -AutoSize `
-IncludePivotTable `
-IncludePivotChart `
-ChartType ColumnClustered `
-PivotRows Company `
-PivotData @{PagedMemorySize='sum';PeakPagedMemorySize='sum'}
Add -PivotDataToColumn
$file = "C:\Temp\ps.xlsx"
rm $file -ErrorAction Ignore
ps |
where company |
select Company,PagedMemorySize,PeakPagedMemorySize |
Export-Excel $file -Show -AutoSize `
-IncludePivotTable `
-IncludePivotChart `
-ChartType ColumnClustered `
-PivotRows Company `
-PivotData @{PagedMemorySize='sum';PeakPagedMemorySize='sum'} `
-PivotDataToColumn
And here is the new chart view
4/7/2016
Made more methods fluent
$t=Get-Range 0 5 .2
$t2=$t|%{$_*$_}
$t3=$t|%{$_*$_*$_}
(New-Plot).
Plot($t,$t, $t,$t2, $t,$t3).
SetChartPosition("i").
SetChartSize(500,500).
Title("Hello World").
Show()
3/31/2016
Also check out how you can create a table and then with Excel notation, index into the data for charting "Impressions[A]"
$data = @"
A,B,C,Date
2,1,1,2016-03-29
5,10,1,2016-03-29
"@ | ConvertFrom-Csv
$c = New-ExcelChart -Title Impressions `
-ChartType Line -Header "Something" `
-XRange "Impressions[Date]" `
-YRange @("Impressions[B]","Impressions[A]")
$data |
Export-Excel temp.xlsx -AutoSize -TableName Impressions -Show -ExcelChartDefinition $c
3/26/2016
NumberFormat
parameter$data |
Export-Excel -Path $file -Show -NumberFormat '[Blue]$#,##0.00;[Red]-$#,##0.00'
3/18/2016
Get-Range
, New-Plot
and Plot Cos example3/7/2016
Header
and FirstDataRow
for Import-Html
3/2/2016
GreaterThan
, GreaterThanOrEqual
, LessThan
, LessThanOrEqual
to New-ConditionalText
echo 489 668 299 777 860 151 119 497 234 788 |
Export-Excel c:\temp\test.xlsx -Show `
-ConditionalText (New-ConditionalText -ConditionalType GreaterThan 525)
2/22/2016
Import-Html
using Lee Holmes Extracting Tables from PowerShell’s Invoke-WebRequest2/17/2016
Equal
and NotEqual
$file = "C:\Temp\passthru.xlsx"
rm $file -ErrorAction Ignore
$xlPkg = $(
New-PSItem north 10
New-PSItem east 20
New-PSItem west 30
New-PSItem south 40
) | Export-Excel $file -PassThru
$ws=$xlPkg.Workbook.Worksheets[1]
$ws.Cells["A3"].Value = "Hello World"
$ws.Cells["B3"].Value = "Updating cells"
$ws.Cells["D1:D5"].Value = "Data"
$ws.Cells.AutoFitColumns()
$xlPkg.Save()
$xlPkg.Dispose()
Invoke-Item $file
1/18/2016
Conditional Text Formatting
. Boe Prox posted about HTML Reporting, Part 2: Take Your Reporting a Step Further and colorized cells. Great idea, now part of the PowerShell Excel module.1/7/2016
Get-ExcelSheetInfo
- Great contribution from Johan Åkerström check him out on GitHub and Twitter12/26/2015
NoLegend
, Show-Category
, ShowPercent
for all charts including Pivot ChartsNoLegend
, Show-Category
, ShowPercent
12/17/2015
These new features open the door for really sophisticated work sheet creation.
Stay tuned for a blog post and examples.
Quick List
10/20/2015
Big bug fix for version 3.0 PowerShell folks!
This technique fails in 3.0 and works in 4.0 and later.
$m="substring"
"hello".$m(2,1)
Adding .invoke
works in 3.0 and later.
$m="substring"
"hello".$m.invoke(2,1)
A big thank you to DarkLite1 for adding the help to Export-Excel.
Added -HeaderRow
parameter. Sometimes the heading does not start in Row 1.
10/16/2015
Fixes Export-Excel generates corrupt Excel file
10/15/2015
Import-Excel
has a new parameter NoHeader
. If data in the sheet does not have headers and you don't want to supply your own, Import-Excel
will generate the property name.
Import-Excel
now returns .Value
rather than .Text
10/1/2015
Merged ValidateSet for Encoding and Extension. Thank you Irwin Strachan.
9/30/2015
Export-Excel can now handle data that is not an object
echo a b c 1 $true 2.1 1/1/2015 | Export-Excel c:\temp\test.xlsx -Show
Or
dir -Name | Export-Excel c:\temp\test.xlsx -Show
9/25/2015
Hide worksheets Got a great request from forensicsguy20012004 to hide worksheets. You create a few pivotables, generate charts and then pivot table worksheets don't need to be visible.
Export-Excel
now has a -HideSheet
parameter that takes and array of worksheet names and hides them.
Example
Here, you create four worksheets named PM
,Handles
,Services
and Files
.
The last line creates the Files
sheet and then hides the Handles
,Services
sheets.
$p = Get-Process
$p|select company, pm | Export-Excel $xlFile -WorkSheetname PM
$p|select company, handles| Export-Excel $xlFile -WorkSheetname Handles
Get-Service| Export-Excel $xlFile -WorkSheetname Services
dir -File | Export-Excel $xlFile -WorkSheetname Files -Show -HideSheet Handles, Services
Note There is a bug in EPPlus that does not let you hide the first worksheet created. Hopefully it'll resolved soon.
9/11/2015
Added Conditional formatting. See TryConditional.ps1 as an example.
Or, check out the short "How To" video.
8/21/2015
7/09/2015
hashtable
with the name of the property and the type of calculation. Sum
, Average
, Max
, Min
, Product
, StdDev
, StdDevp
, Var
, Varp
Get-Service |
Export-Excel "c:\temp\test.xlsx" `
-Show `
-IncludePivotTable `
-PivotRows status `
-PivotData @{status='count'}
6/16/2015 (Thanks Justin)
Examples
Get-Process|Export-Excel foo.xlsx -Verbose -IncludePivotTable -TableName "Processes" -Show
Get-Process|Export-Excel foo.xlsx -Verbose -IncludePivotTable -RangeName "Processes" -Show
5/25/2015
5/17/2015
Example
Get-CimInstance win32_service |
select state, accept*, start*, caption |
Export-Excel test.xlsx -Show -BoldTopRow -AutoFilter -FreezeTopRow -AutoSize
5/4/2015
Find-Module importexcel
then Find-Module importexcel | Install-Module
4/27/2015
4/25/2015
Example
$ps = ps
$ps |
Export-Excel .\testExport.xlsx -WorkSheetname memory `
-IncludePivotTable -PivotRows Company -PivotData PM `
-IncludePivotChart -ChartType PieExploded3D
$ps |
Export-Excel .\testExport.xlsx -WorkSheetname handles `
-IncludePivotTable -PivotRows Company -PivotData Handles `
-IncludePivotChart -ChartType PieExploded3D -Show
4/20/2015
ConvertFrom-ExcelSheet
Export-MultipleExcelSheets
to ConvertFrom-ExcelSheet
4/13/2015
Title
, TitleFillPattern
, TitleBold
, TitleSize
, TitleBackgroundColor
4/10/2015
AutoFitColumns
to AutoSize
Export-MultipleExcelSheets
-Password
for a worksheet-Force
switch with -NoClobber
switchGet-Help
4/8/2015
Examples - gsv | Export-Excel .\test.xlsx -WorkSheetname Services
dir -file | Export-Excel .\test.xlsx -WorkSheetname Files
ps | Export-Excel .\test.xlsx -WorkSheetname Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM
Convert (All or Some) Excel Sheets to Text files
Reads each sheet in TestSheets.xlsx and outputs it to the data directory as the sheet name with the extension .txt
ConvertFrom-ExcelSheet .\TestSheets.xlsx .\data
Reads and outputs sheets like Sheet10 and Sheet20 form TestSheets.xlsx and outputs it to the data directory as the sheet name with the extension .txt
ConvertFrom-ExcelSheet .\TestSheets.xlsx .\data sheet?0
Example Adding a Title
You can set the pattern, size and of if the title is bold.
$p=@{
Title = "Process Report as of $(Get-Date)"
TitleFillPattern = "LightTrellis"
TitleSize = 18
TitleBold = $true
Path = "$pwd\testExport.xlsx"
Show = $true
AutoSize = $true
}
Get-Process |
Where Company | Select Company, PM |
Export-Excel @p
Example Export-MultipleExcelSheets
$p = Get-Process
$DataToGather = @{
PM = {$p|select company, pm}
Handles = {$p|select company, handles}
Services = {gsv}
Files = {dir -File}
Albums = {(Invoke-RestMethod http://www.dougfinke.com/PowerShellfordevelopers/albums.js)}
}
Export-MultipleExcelSheets -Show -AutoSize .\testExport.xlsx $DataToGather
NOTE If the sheet exists when using -WorkSheetname parameter, it will be deleted and then added with the new data.
You can also find EPPLus on Nuget.
-IncludePivotTable
, if that pivot table name exists, you'll get an error.Author: dfinke
Source Code: https://github.com/dfinke/ImportExcel
License: Apache-2.0 License
1595897400
While thorough documentation is necessary, it’s often put on the back burner and looked upon as a chore and a low-priority task. As a developer, it’s easy to fall back on the mindset of “why document the code when you, the author, know exactly what it’s doing?” When the code is rapidly changing, keeping the docs up to date becomes an even more substantial burden.
Luckily, manually writing out documentation is not required due to the capabilities of Sphinx, a tool that automatically generates documentation from the docstrings in your code.
Below is a step-by-step guide to easily auto-generate clean and well-organized documentation from Python code using Sphinx.
#sphinx #documentation #python