Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / August 2004

Tip: Looking for answers? Try searching our database.

Missing full screen displayed in an Excel File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nancy. - 30 Aug 2004 17:55 GMT
I have used the following example from Microsoft to
create this file. However when I double click on this
file from the explore to open it, it is displayed with no
default worksheet.  In order to do this I have to click
on View then Full Screen every time I want to open this
excel.
How can I make it displayed full screen automatically?
Thanks

Dim oExcel As Object
       Dim oBook As Object
       Dim oSheet As Object

       'Start a new workbook in Excel.
       oExcel = CreateObject("Excel.Application")
       oBook = oExcel.Workbooks.Add

       'Add data to cells of the first worksheet in the
new workbook.
       oSheet = oBook.Worksheets(1)
       oSheet.Range("A1").Value = "Last Name"
       oSheet.Range("B1").Value = "First Name"
       oSheet.Range("A1:B1").Font.Bold = True
       oSheet.Range("A2").Value = "Doe"
       oSheet.Range("B2").Value = "John"

       'Save the Workbook and quit Excel.
       oBook.SaveAs(sSampleFolder & "Book1.xls")
       oSheet = Nothing
       oBook = Nothing
       oExcel.Quit()
       oExcel = Nothing
       GC.Collect()
Nancy. - 31 Aug 2004 21:11 GMT
Any hints?
>-----Original Message-----
>I have used the following example from Microsoft to
[quoted text clipped - 32 lines]
>               
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.