Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6070969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:59:37+00:00 2026-05-23T09:59:37+00:00

I have a customer that needs to convert XLS files to XLSB. Has anyone

  • 0

I have a customer that needs to convert XLS files to XLSB. Has anyone done this programmatically, (with or without an add-on — doesn’t matter — just need to be able to automate it)? I’m looking for a way to automate this.

As a side note, the customer is asking about this because they use Sharepoint, and it seems it has a way to analyze XLSB files quicker and easier than XLS? I’m working to improve my Sharepoint knowledge, but in the meantime, I’m trying to find an answer to this XLSB issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:59:38+00:00Added an answer on May 23, 2026 at 9:59 am

    Well, then there is a short format verison:

    using Microsoft.Office.Interop.Excel;
    
    // init excel
    Application excelApplication = new Application();
    
    // ...
    
    // open book in any format
    Workbook workbook = excelApplication.Workbooks.Open("1.xls", XlUpdateLinks.xlUpdateLinksNever, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    
    // save in XlFileFormat.xlExcel12 format which is XLSB
    workbook.SaveAs("1.xlsb", XlFileFormat.xlExcel12, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    
    // close workbook
    workbook.Close(false, Type.Missing, Type.Missing);
    
    // ...
    
    // shutdown excel
    excelApplication.Quit();
    

    You will need a Excel installation with .NET programming support (disabled by default in installer!) and reference MS Office PIA assembly for Excel from your project:

    add Excel PIA reference

    References:
    Workbooks.Open, workbook.SaveAs, XlFileFormat.xlExcel12

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a customer that has an application that uses an Advantage Database. I
Suppose I have a customer object that has all of the standard customer properties
I have an Person Table that has customers and salesman. Each customer is assigned
We have a customer that is trying to call our web service written in
We have a customer that would like to modify application user messages that we
I have an internal customer that only receives his email report from MS Report
I have a Customer class that contains a property, MyProperty, which is of a
Suppose I have a class Customer that is mapped to the database and everything
I'm using linq to pull back an object (i.e. customer) that might have a
I have two tables in my database that look like that: Customer: C_ID city

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.