![]() |
Excel - SaveAs - Fehlermeldung - "Variante des Typs(Er
Wenn ich ein Workbook unter Office 2007 speichern will, kommt folgende Fehlermeldung?
"Variante des Typs (Error) konnte nicht in Typ (boolean) konvertiert werden."
Delphi-Quellcode:
FWorkBook.SaveAs('Test.xlsx',
EmptyParam, EmptyParam, // Passwort EmptyParam, // WriteResPassword false, // ReadOnlyRecommended false, // Create Backup EmptyParam, // AccessMode EmptyParam, // ConflictResolution false, // AddToMru EmptyParam, // TextCodePage EmptyParam, // TextVisualLayout false, // Local FLCID); *Ratlos bin* |
Re: Excel - SaveAs - Fehlermeldung - "Variante des Typ
Hallo stoxx,
welche Excel-Unit hast Du eingebunden? Von Excel zu Excel-Version gibt es bei machen Befehlen eine unterschiedliche Anzahl von Parameter. Bis bald Chemiker |
Re: Excel - SaveAs - Fehlermeldung - "Variante des Typ
die Anzahl scheint korrekt zu sein, da es sich compilieren lässt.
ich hab dazu all diese eingebunden .. ExcelXP, OleServer, ActiveX, Ole2, ComObj das Workbook ist vom Typ: TExcelWorkbook; das Workbook ist auch connected, man kann auch ansonsten damit arbeiten, also prinzipiell liegt der Fehler scheinbar nur in der SaveAs Methode.... |
Re: Excel - SaveAs - Fehlermeldung - "Variante des Typ
Bei einem Parameter scheint der Typ nicht zu stimmen
|
Re: Excel - SaveAs - Fehlermeldung - "Variante des Typ
Hallo stoxx,
kontrolliere die ExcelXP-Unit, ob diese die gleiche Anzahl an Parameter hat, bei der SaveAs-Methode, oder wenn Du ExcelXP hast gehe in die Hilfe von VBA und überprüfe die Anzahl der Parameter der Workbook.SaveAs-Methode. Bis bald Chemiker |
Re: Excel - SaveAs - Fehlermeldung - "Variante des Typ
Es lag am AccessMode ... jetzt geht es ...
Delphi-Quellcode:
FWorkBook.SaveAs('c:\Test.html',
xlhtml, EmptyParam, // Passwort EmptyParam, // WriteResPassword false, // ReadOnlyRecommended false, // Create Backup xlNoChange, // AccessMode EmptyParam, // ConflictResolution false, // AddToMru EmptyParam, // TextCodePage EmptyParam, // TextVisualLayout false, // Local FLCID); http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.saveas(VS.80 ).aspx |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:17 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz