Solved

Formatting Excel sheet in VB.net 2008

Posted on 2012-12-24
3
601 Views
Last Modified: 2012-12-24
I used to have the following code in VB 2005, but it does not work in VS 2008:

        Dim ExcelOpt As New ExcelDataOnlyFormatOptions ' this line gives an error in VS 2008

            ExcelOpt.MaintainRelativeObjectPosition = True
            ExcelOpt.ExportObjectFormatting = True
            ExcelOpt.MaintainColumnAlignment = True

Any ideas how to fix it ?

Thank you
0
Comment
Question by:crcsupport
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38719169
Did you install Office Primary Interop Assemblies?
0
 
LVL 1

Author Comment

by:crcsupport
ID: 38719297
I've requested that this question be deleted for the following reason:

i think solve the problem
0
 
LVL 1

Author Comment

by:crcsupport
ID: 38719232
yes , i did
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question