469,898 Members | 2,259 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Late bound resolution; runtime errors could occur.

1
I am getting a warning in my VB.Net application Warning
Late bound resolution; runtime errors could occur.
for the following code

Expand|Select|Wrap|Line Numbers
  1. Private Function CreateReportHeader(ByRef ExcelApp As Excel.Application, ByVal table As DataTable)
  2.  
  3.         Dim bHeaderCreated As Boolean = False
  4.  
  5.         Dim col As DataColumn = Nothing
  6.  
  7.         Dim nColIndx As Integer = 1
  8.  
  9.         m_nRowCnt += 1
  10.  
  11.         With ExcelApp
  12.  
  13.     .Rows("1:1").Select()           'warning
  14.     .Selection.Font.Bold = True 'warning
  15.  
  16. .Worksheets(1).cells(m_nRowCnt, nColIndx).Value = "Sort Col" 'warning
  17.  
  18. .Worksheets(1).cells(m_nRowCnt, nColIndx).HorizontalAlignment = 1'warning
what shoudl I do?
Aug 22 '08 #1
0 1570

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Scott English | last post: by
2 posts views Thread by Veggis | last post: by
1 post views Thread by Cirene | last post: by
14 posts views Thread by Siv | last post: by
53 posts views Thread by Aaron Gray | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.