onenote 2007 notebooks batch convert to onenote 2010/2013/2016 - onenote

My customers have roughly 600gb (all together) worth of Onenote 2007 notebooks.
Onenote 2016 doesn't allow editting of onenote2007 format notebooks. It requires conversion.
MS doesn't provide a batch conversion utility.
MS does provide a notebook-by-notebook conversion via their UI which is clunky.
Does anyone know if I could use their Publish API to convert one notebook at a time?
https://msdn.microsoft.com/en-us/library/office/jj680120.aspx#ON14DevRef_Application_Functional (see Publish Method)

I gave it a go.
You can!
One can use the Publish API method from the Application2 onenote API COM object by opening a 2007 notebook and specifying the export format as PublishFormat.pfOneNote (to export as 2010+ format).
There are some limitations:
You can only convert a section. So your code will have to open the 2007 notebooks, find the sections, and convert one at a time.
Sections that have no pages will result in an error code being thrown. So do check that there are pages in the section before attempting conversion.
So, given the limitations, my conversion app will have to:
Loop through the notebooks in a big folder.
Open each notebook, iterate through each section, and convert each non-empty section into a new notebook folder.
Open the new notebook folder and create into it any missing sections.
Order the sections in the new notebook.
Save and close both notebooks.
Repeat.
Here's a partial implementation:
https://github.com/PetePeter/onenoteconverter

Related

How to export CSV from Business Object report?

I understand that from Business Objects client I have an option to export to "CSV (data only)", but my understanding is that, such an export will not care about the report but just dump the raw universe data.
Isn't there any single way to be able to export the report "view" to CSV ?
It depends on the version of BusinessObjects you're working on.
Originally, the CSV export only looked at the Web Intelligence (I assume you're referring to that particular client) microcube, meaning the raw data retrieved from the data provider(s), and disregards any formatting, filters, aggregations, … you may have specified on your report.
GUI
However, you know have the option to export a report (so not the whole document) as a CSV Archive, which results in a Zip file containing a CSV for the active report at the time of export.
I'm referring to BI 4.1 SP05, previous versions may have this option as I'm not sure when it was introduced.
API
Using the RESTful API that is available in BI4, you can also export a report to CSV. In this case, the actual CSV file will be returned instead of an archive.
Remember that in order to use the RESTful API, you need to have a WACS server in your BusinessObjects environment, running the RESTful API service. You cannot deploy the REST API on an external Java application server.
For more information, have a look at the section Exporting a Report in Listing Mode (SDK information for BI 4.1 SP05).
Remarks
A report is a tab within a document; documents however are often (incorrectly) referred to as reports.

Is there any way to fill in Sharepoint entries via parsing text file?

My workplace has a whole bunch of unannotated .zip files that need to be uploaded to the new file server (Windows). I've used perl to parse through through the excel files within the .zip files to create an annotation.txt file for each .zip file that contains information about the .zip file. I have 1000's of zip files and do not want to manually enter in information for each entry if there's a way to automate it. I am proficient in perl and mysql, and wondering if there is any way to utilize my skillsets to port this information into the Microsoft Sharepoint website.
Thank you in advance for any advice or suggestions.
There a many, many ways to meet your requirement.
You could write a event receiver to parse the files once uploaded and set metadata.
A better approach for your use case might be to write a .NET based console application and reference Microsoft.SharePoint.Client and then upload your files using the Client side object model (CSOM) and set the metadata during that process as outlined here: Upload a document to a SharePoint list from Client Side Object Model
There are also REST and ASMX webservices that you could call from a non .NET runtime process.
Plenty of options, pick the one that fits your needs and skills best.

how to export datagrid to excel(.xlsx format only) without using server side technology and as3xls?

Presently I am using as3xls.swc to export datagrid to excel which is giving me only to save as .xls format which is opening in microsoft excel 2010 which is OK for me, but it is only opening in protected mode where I am unable to do any edits or save it. So, can anybody know any other way to save as .xlsx format in the client side itself?
Protected mode is a feature of Excel within the Microsoft operating system. They're trying to keep you from inadvertently downloading viruses. You can defeat these measures by modifying the Excel trust store. It has nothing to do with your code, and you don't need to use older versions of Excel.
I find it easiest to add a trusted location (like your desktop).
http://office.microsoft.com/en-us/excel-help/what-is-protected-view-HA010355931.aspx
You can export to Excel2007 - its just an xml file format. WE have some details on our blog: http://blog.flexicious.com/post/Flexicious-30-Release-Grid-Edition.aspx. Keep in mind however, it generates an XML file, which when you double click on, will correctly open up excel (Assuming you have excel 2007 or the reader installed).

Print MS Access report to .xps file using VBA

I am using MS Access 2003 and have seven different reports I have to distribute each morning, and I currently do that manually by printing each to an XPS file. The default printer for each report has been set to XPS file, and I tried this code:
DoCmd.OpenReport ("rptDaily_1of7")
DoCmd.PrintOut acPrintAll,1,,acHigh,1
When I use that, it does open a Save As box, but .tif is the only option in the "Save As type" field. Even if it wasn't though, ideally I'd like to send the file path and name as a parameter and have it handle the entire process (so I can use a loop to generate all seven files with the push of a button). I'm hoping there's another command I can use to do this, or possibly another method. Note that it's not my machine, and I do not have admin rights to install anything else (like a pdf generator, etc.).
You can create your reports as PDF files using ReportToPDF by Stephen Lebans.
This can be easily automated (there is a MDB with example code in the download) and you don't have to install anything.
It comes with two DLLs which you need to put into the same folder as your MDB/MDE, and that's it. No installation / DLL registering, just distribute the two DLLs with your MDB/MDE.
We are using this at work to print thousands of reports per day from Access 2003.

Import MS Access to CSV on Mac programmatically

The Official Cohort Default Rates for Schools site has a link on the left to “Download Entire List.” That downloads an Access database file (.accdb). I'd like to have it in CSV (.csv) format.
This answer provides a Windows solution to import Access to MySQL, but ideally, I'd like to have a Unix command-line program, e.g., accdb2csv input.accdb output.csv. Is there anything like that? If not, how do I code that?
Here are some other links I've found:
http://jackcess.sourceforge.net/
https://github.com/akaihola/mdb2django
https://github.com/karlbennett/export-accessdb/blob/5b492778439c85f15d5c859a27094514f7aba8ee/src/main/java/org/youthnet/export/Smasher.java
https://github.com/Tomvb62/DBConvert/blob/dc67a3d835a9708320d29b8040ddc5cde7e7fa39/src/dbengine/export/MSAccess.java
I just released an access2csv program based on Jackess. Code is at https://github.com/AccelerationNet/access2csv, a binary is available at https://github.com/AccelerationNet/access2csv/releases.
so right click rename the file from Aaron.accdb to Aaron.zip and then right click unzip it. Office 2007 / 2010 formats are effectively zipped XML files.
This will give you a bunch of XML that you can easily parse using Excel, or XSL, etc.