473,471 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Late bound resolution; runtime errors could occur.

1 New Member
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 1839

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

Similar topics

9
by: Scott English | last post by:
I am writing an C# program. I call a method on a COM object that returns Object. I don't know the type of the object (and reflection just says its a __ComObject), but I know there is supposed to...
2
by: hazz | last post by:
how do I do this? I am certain my Visual Studio .NET solution allowed me to do this before but I don't know how the build/debug settings were configured. In order to get around an unavoidable...
1
by: Daniel | last post by:
How do I call a delegate in late bound C# dll? there some way to do this w/ a sharedinterface file? any examples? i tried this but it doesnt work: (oType.GetMethod("IOCTLJOB").Invoke(pObj, new...
17
by: David | last post by:
Hi all, I have the following problem: my program works fine, but when I add option strict at the top of the form, the following sub fails with an error that option strict does not allow late...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
2
by: Veggis | last post by:
Hi I have a large access application, it registers information on funerals. And this is sold on as runtime apps to other customers. One of my customers got new pcs recently, and now certain...
1
by: Cirene | last post by:
I wrote some code 2 days ago. It consisted of doing a SELECT CASE statement using a sqldatareader... Dim dr2 As SqlDataReader = MyCommand2.ExecuteReader While dr2.Read() Select Case...
14
by: Siv | last post by:
hi, I am converting an application that writes to an Excel spreadsheet and the code trips the "option Strict" that I would like on because the parser says "option Strict On disallows late...
53
by: Aaron Gray | last post by:
I jokingly say this is the late entry :) Okay I have read all the event entry comments from John's Resig's AddEvent comepition blog :- http://ejohn.org/projects/flexible-javascript-events/ ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.