Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ASP.NET - Fehlermeldung beim Öffnen einer Excel Datei

Empfohlene Antworten

Hallo alle zusammen!

Ich hoffe, dass ihr mir helfen könnt.

Ich habe schon etliche Bücher durchgewälzt bzw gegoogelt, aber irgendwie find ich keine Lösung für mein Problem :(

Mit folgendem Code wollte ich eine Excel Datei öffnen und diese wieder abspeichern (nur halt anderes Format, aber das ist im Moment nebensächlich):

Dim myexcel As Excel.Application          

Dim myworkbook As Excel.Workbook            

myexcel = Server.CreateObject("Excel.Application")          

myworkbook.Open(Server.MapPath("dateien\test.xls"))          

myworkbook.SaveAs(Server.MapPath("dateien\testexcel.aspx"))

myworkbook.Close()          

myexcel.Quit()          

myexcel = Nothing          

excellink.NavigateUrl = "dateien/testexcel.aspx"          

excellink.Target = "_blank"
Folgende Fehlermeldung erhalte ich: System.NullReferenceException: Objektvariable oder With-Blockvariable wurde nicht festgelegt. Ich find einfach keine Lösung...ich kanns auch umbauen wie ich will...nur das dann halt andere Fehlermeldungen kommen :rolleyes: Ab und zu bekomme ich auch folgende Fehlermeldung: Eine nicht behandelte Ausnahme des Typs 'System.ExecutionEngineException' ist in test.dll aufgetreten. Und zwar meckert er dann bei der Zeile:
 myexcel = Server.CreateObject("Excel.Application")

Hoffe ihr könnt mir helfen...

Ich möchte doch nur, das ich diese Datei öffnen und wieder abspeichern kann :(

Mfg BabyGirl

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.