Solved

CREATING AN EXCEL SPREADSHEET IN VISUAL BASIC FORM

Posted on 2009-07-15
3
146 Views
Last Modified: 2013-11-26
HELLO EXPERTS,
I'M ATTEMPTING TO CREATE AN EXCEL WORKBOOK IN VB. I BELIEVE I HAVE ADDED THE REQUIRED REFERENCES AND IMPORT STATEMENTS. HOWEVER,  THE FIRST LINE OF CODE THAT DECLARES AND INSTANCE OF EXCEL PRODUCES A SECURITY ERROR. (System.Security.Permissions.SecurityPermission).  I'M NOT SURE IF THIS IS PERTAINING TO MY COMPUTER SETTING OR LAN SETTINGS. I NEED HELP SINCE I DON'T KNOW HOW TO FIX EITHER.

THANKS
0
Comment
Question by:reeseer74
3 Comments
 
LVL 8

Accepted Solution

by:
Bob Hoffman earned 250 total points
ID: 24863918
Are you authorized to the folder your create the workbook on?
0
 
LVL 48

Assisted Solution

by:jpaulino
jpaulino earned 250 total points
ID: 24863983
How are you creating an excel spreadsheet in a visual basic form ?
Have you tried using an webbrowser ?
0
 

Author Comment

by:reeseer74
ID: 24864037
In an vb application form.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now