Click here to Skip to main content
15,905,785 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to use progress bar on copying file from embed resources to given path Pin
shivamgupta29-Mar-09 17:22
shivamgupta29-Mar-09 17:22 
AnswerRe: how to use progress bar on copying file from embed resources to given path Pin
Christian Graus29-Mar-09 21:03
protectorChristian Graus29-Mar-09 21:03 
Questionvb.net writes output to separate worksheets in separate workbooks Pin
jazzgirl29-Mar-09 17:20
jazzgirl29-Mar-09 17:20 
AnswerRe: vb.net writes output to separate worksheets in separate workbooks Pin
Dave Kreskowiak30-Mar-09 1:58
mveDave Kreskowiak30-Mar-09 1:58 
GeneralRe: vb.net writes output to separate worksheets in separate workbooks Pin
jazzgirl30-Mar-09 5:49
jazzgirl30-Mar-09 5:49 
GeneralRe: vb.net writes output to separate worksheets in separate workbooks Pin
Dave Kreskowiak30-Mar-09 6:52
mveDave Kreskowiak30-Mar-09 6:52 
AnswerRe: vb.net writes output to separate worksheets in separate workbooks Pin
Member 432084431-Mar-09 1:45
Member 432084431-Mar-09 1:45 
Questionproblem related to listview Pin
nazimghori29-Mar-09 9:17
nazimghori29-Mar-09 9:17 
hello every one

i want to create a report in excel using the items and sub items of listview

my code is:-
 Dim xl As New Excel.Application
   
Private Sub exc()
        Try
            Dim i As String
            i = CStr(1)
            Me.xl = CreateObject("Excel.Application")
            Me.xl.Workbooks.Add()
           
            Me.xl.Range("A1").Value = "Sr No."
            Me.xl.Range("B1").Value = "Area Code"
            Me.xl.Range("C1").Value = "Area Name"
            Me.xl.Range("D1").Value = "Alias"

            i = CStr(2)

           


            'Me.TextBox1.Focus()
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub


this i have written in form Load event

now code on button click event is:-

Private Sub btnreport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnreport.Click
        Try
            xl.Visible = True

            Me.xl.Range("A" & i).Value = Me.lst1.Items(0).SubItems(0).Text
            Me.xl.Range("B" & i).Value = Me.lst1.Items(0).SubItems(3).Text
            Me.xl.Range("C" & i).Value = Me.lst1.Items(0).SubItems(1).Text
            Me.xl.Range("D" & i).Value = Me.lst1.Items(0).SubItems(2).Text


            i = CStr(CDbl(i) + 1)
           
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub

Exception from HRESULT: 0x800A03EC

i got this message in catch block cant get it so
please help..
Smile | :) Smile | :) Smile | :) Smile | :)
AnswerRe: problem related to listview Pin
Christian Graus29-Mar-09 9:52
protectorChristian Graus29-Mar-09 9:52 
AnswerRe: problem related to listview Pin
dineshrajputglobal29-Mar-09 22:58
dineshrajputglobal29-Mar-09 22:58 
GeneralRe: problem related to listview Pin
nazimghori31-Mar-09 5:43
nazimghori31-Mar-09 5:43 
QuestionHelp for beginnner Pin
seccard129-Mar-09 7:45
seccard129-Mar-09 7:45 
AnswerRe: Help for beginnner Pin
Yusuf29-Mar-09 8:42
Yusuf29-Mar-09 8:42 
GeneralRe: Help for beginnner Pin
LloydA1114-Apr-09 13:02
LloydA1114-Apr-09 13:02 
QuestionProblem related to multiline textbox Pin
nazimghori28-Mar-09 21:28
nazimghori28-Mar-09 21:28 
AnswerRe: Problem related to multiline textbox Pin
Luc Pattyn28-Mar-09 22:33
sitebuilderLuc Pattyn28-Mar-09 22:33 
AnswerRe: Problem related to multiline textbox Pin
Eddy Vluggen28-Mar-09 22:45
professionalEddy Vluggen28-Mar-09 22:45 
QuestionRe: Problem related to multiline textbox Pin
nazimghori29-Mar-09 6:32
nazimghori29-Mar-09 6:32 
AnswerRe: Problem related to multiline textbox Pin
Eddy Vluggen29-Mar-09 6:40
professionalEddy Vluggen29-Mar-09 6:40 
QuestionRe: Problem related to multiline textbox Pin
nazimghori29-Mar-09 7:28
nazimghori29-Mar-09 7:28 
AnswerRe: Problem related to multiline textbox Pin
Eddy Vluggen29-Mar-09 7:33
professionalEddy Vluggen29-Mar-09 7:33 
AnswerRe: Problem related to multiline textbox Pin
Luc Pattyn29-Mar-09 6:55
sitebuilderLuc Pattyn29-Mar-09 6:55 
AnswerRe: Problem related to multiline textbox Pin
dineshrajputglobal29-Mar-09 22:55
dineshrajputglobal29-Mar-09 22:55 
QuestionUse { and & _ in string.Format Pin
mehrdadc4828-Mar-09 20:43
mehrdadc4828-Mar-09 20:43 
AnswerRe: Use { and & _ in string.Format Pin
Henry Minute28-Mar-09 23:43
Henry Minute28-Mar-09 23:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.