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

Visual Basic

 
AnswerRe: How to Hide Process from Task Manager Pin
Wendelius27-Sep-08 5:41
mentorWendelius27-Sep-08 5:41 
GeneralRe: How to Hide Process from Task Manager Pin
Paul Conrad27-Sep-08 8:01
professionalPaul Conrad27-Sep-08 8:01 
GeneralRe: How to Hide Process from Task Manager Pin
Wendelius27-Sep-08 8:29
mentorWendelius27-Sep-08 8:29 
AnswerRe: How to Hide Process from Task Manager Pin
0x3c027-Sep-08 9:02
0x3c027-Sep-08 9:02 
AnswerRe: How to Hide Process from Task Manager Pin
Jon_Boy29-Sep-08 4:02
Jon_Boy29-Sep-08 4:02 
Questionguys, Image uploading in data report using the url Pin
ebhoy26-Sep-08 19:09
ebhoy26-Sep-08 19:09 
QuestionDownload a file by interpreting the System.Net.HTTPWebResponse Pin
Farrukh S Malik26-Sep-08 16:58
Farrukh S Malik26-Sep-08 16:58 
QuestionSecurity Exception on Excel Automation Pin
craigmg7826-Sep-08 11:59
craigmg7826-Sep-08 11:59 
I'm hoping to discover what is causing the following security error when I try to automate excel and open a new workbook:

Security Exception was unhandled
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I am using the following code (which I have used before with no errors):

Dim oXL As Excel.Application
       Dim oWB As Excel.Workbook
       Dim oSheet As Excel.Worksheet

       'Dim oRng As Excel.Range

       Try
           'Grab a running instance of Excel.
           oXL = Marshal.GetActiveObject("Excel.Application")
       Catch ex As Exception
           'If no instance exist then create a new one.
           oXL = New Excel.Application
       End Try

       'Start Excel and get Application object.
       If oXL Is Nothing Then
           Throw New Exception("The Excel libarary could not be loaded. " & _
               "You may have an incorrect version of Excel installed. " & _
               "Please consult your system administrator. The instantiation " & _
               "failed without an exception.")
       End If
       oXL.Visible = True

       'Get a new workbook.
       oWB = oXL.Workbooks.Add
       oSheet = oWB.ActiveSheet


Anyone have any ideas what I am doing wrong here?

Thanks,

Craig

"That rug really tied the room together."

QuestionPixel Shifting in Bitmap Pin
Sonhospa26-Sep-08 10:50
Sonhospa26-Sep-08 10:50 
AnswerRe: Pixel Shifting in Bitmap Pin
JR21229-Sep-08 1:11
JR21229-Sep-08 1:11 
QuestionRe: Pixel Shifting in Bitmap Pin
Sonhospa29-Sep-08 1:22
Sonhospa29-Sep-08 1:22 
QuestionThrowing Exception [modified] Pin
Sonhospa29-Sep-08 1:59
Sonhospa29-Sep-08 1:59 
AnswerRe: Throwing Exception Pin
jr21229-Sep-08 19:39
jr21229-Sep-08 19:39 
AnswerRe: Pixel Shifting in Bitmap Pin
jr21229-Sep-08 19:22
jr21229-Sep-08 19:22 
NewsRe: Pixel Shifting in Bitmap Pin
Sonhospa29-Sep-08 21:38
Sonhospa29-Sep-08 21:38 
QuestionConnections strings driving me crazy Pin
uneasyrider26-Sep-08 7:19
uneasyrider26-Sep-08 7:19 
AnswerRe: Connections strings driving me crazy Pin
Jon_Boy26-Sep-08 8:12
Jon_Boy26-Sep-08 8:12 
QuestionWindows Installer Textbox User Interface Pin
Cory Kimble26-Sep-08 7:03
Cory Kimble26-Sep-08 7:03 
AnswerRe: Windows Installer Textbox User Interface Pin
piyey26-Sep-08 10:54
piyey26-Sep-08 10:54 
QuestionLoad form count Pin
tatchung26-Sep-08 2:44
tatchung26-Sep-08 2:44 
AnswerRe: Load form count Pin
Jon_Boy26-Sep-08 3:43
Jon_Boy26-Sep-08 3:43 
AnswerRe: Load form count Pin
Dave Kreskowiak26-Sep-08 3:44
mveDave Kreskowiak26-Sep-08 3:44 
GeneralRe: Load form count Pin
tatchung26-Sep-08 8:42
tatchung26-Sep-08 8:42 
QuestionSort in entity Pin
Member 555221926-Sep-08 2:42
Member 555221926-Sep-08 2:42 
AnswerRe: Sort in entity Pin
Dave Kreskowiak26-Sep-08 3:38
mveDave Kreskowiak26-Sep-08 3:38 

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.