Solved

Formatting Excel sheet in VB.net 2008

Posted on 2012-12-24
3
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

734 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