Formatting Excel sheet in VB.net 2008

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
LVL 1
crcsupportAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
Did you install Office Primary Interop Assemblies?
0
 
crcsupportAuthor Commented:
I've requested that this question be deleted for the following reason:

i think solve the problem
0
 
crcsupportAuthor Commented:
yes , i did
0
All Courses

From novice to tech pro — start learning today.