|
|
|
работа с Excel в VS2010
|
|||
|---|---|---|---|
|
#18+
Подскажите пожалуйста на этапе написания кода подчеркивает ApplicationClass и пишет подсказку "Interop type cannot be embedded. Use the applicable interface instead." Чего не хватает? Imports System.ComponentModel Imports System.IO Imports System.Data.OleDb Imports System.Data Imports System.Data.SqlClient Imports Microsoft.Office.Interop.Excel Imports System.Windows Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim excelApplication As ApplicationClass = New ApplicationClass() Dim excelWorkBook As Workbook = Nothing Dim targetSheet As Worksheet = Nothing Dim paramWorkbookPath As String = "C:\1.xls" excelWorkBook = excelApplication.Workbooks.Open(paramWorkbookPath) End Sub ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.10.2010, 14:47 |
|
||
|
работа с Excel в VS2010
|
|||
|---|---|---|---|
|
#18+
trajor, так вам вроде компилятор написал что не так и что нужно делать что еще вы хотите тут услышать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.10.2010, 17:32 |
|
||
|
работа с Excel в VS2010
|
|||
|---|---|---|---|
|
#18+
няка, чтото типа этого Here it is enough to say that Excel.ApplicationClass derives from Excel.Application interface and one can even instantiate Excel using Excel.Application interface. Rewriting this code as below produces exact same results: Excel.Application xlapp = new Excel.Application(); ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.10.2010, 10:05 |
|
||
|
|

start [/forum/topic.php?fid=17&tid=1351036]: |
0ms |
get settings: |
11ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
191ms |
get topic data: |
9ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
| others: | 248ms |
| total: | 529ms |

| 0 / 0 |
