Partager via


Range.ExportAsFixedFormat Méthode

Définition

Enregistre une partie d'un document au format PDF ou XPS.

public void ExportAsFixedFormat(string OutputFileName, Microsoft.Office.Interop.Word.WdExportFormat ExportFormat, bool OpenAfterExport = false, Microsoft.Office.Interop.Word.WdExportOptimizeFor OptimizeFor = Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, bool ExportCurrentPage = false, Microsoft.Office.Interop.Word.WdExportItem Item = Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, bool IncludeDocProps = false, bool KeepIRM = false, Microsoft.Office.Interop.Word.WdExportCreateBookmarks CreateBookmarks = Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, bool DocStructureTags = false, bool BitmapMissingFonts = false, bool UseISO19005_1 = false, ref object FixedFormatExtClassPtr);
abstract member ExportAsFixedFormat : string * Microsoft.Office.Interop.Word.WdExportFormat * bool * Microsoft.Office.Interop.Word.WdExportOptimizeFor * bool * Microsoft.Office.Interop.Word.WdExportItem * bool * bool * Microsoft.Office.Interop.Word.WdExportCreateBookmarks * bool * bool * bool * obj -> unit
Public Sub ExportAsFixedFormat (OutputFileName As String, ExportFormat As WdExportFormat, Optional OpenAfterExport As Boolean = false, Optional OptimizeFor As WdExportOptimizeFor = Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, Optional ExportCurrentPage As Boolean = false, Optional Item As WdExportItem = Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, Optional IncludeDocProps As Boolean = false, Optional KeepIRM As Boolean = false, Optional CreateBookmarks As WdExportCreateBookmarks = Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, Optional DocStructureTags As Boolean = false, Optional BitmapMissingFonts As Boolean = false, Optional UseISO19005_1 As Boolean = false, Optional ByRef FixedFormatExtClassPtr As Object)

Paramètres

OutputFileName
String

Chaîne obligatoire Chemin d’accès et nom de fichier du nouveau fichier PDF ou XPS.

ExportFormat
WdExportFormat

Obligatoire WdExportFormat Spécifie le format PDF ou XPS.

OpenAfterExport
Boolean

Facultatif Boolean Ouvre le nouveau fichier après l’exportation du contenu.

OptimizeFor
WdExportOptimizeFor

Facultatif WdExportOptimizeFor Spécifie s’il faut optimiser l’écran ou l’impression.

ExportCurrentPage
Boolean

Facultatif Boolean Spécifie s’il faut exporter la page active. True : exporte la totalité de la page. False exporte uniquement la sélection actuelle.

Item
WdExportItem

Facultatif WdExportItem Spécifie si le processus d’exportation inclut uniquement du texte ou du texte avec un balisage.

IncludeDocProps
Boolean

Facultatif Boolean Spécifie s’il faut inclure des propriétés de document dans le fichier nouvellement exporté.

KeepIRM
Boolean

Boolean facultatif Spécifie si les autorisations IRM doivent être copiées dans un document XPS si le document source dispose de protections IRM. Valeur par défaut est True.

CreateBookmarks
WdExportCreateBookmarks

Facultatif WdExportCreateBookmarks Spécifie s’il faut exporter les signets et le type de signets à exporter.

DocStructureTags
Boolean

Boolean facultatif Spécifie s’il faut inclure des données supplémentaires pour aider les lecteurs d’écran, par exemple des informations sur le flux et les organization logiques du contenu. Valeur par défaut est True.

BitmapMissingFonts
Boolean

Facultatif Boolean Spécifie s’il faut inclure une bitmap du texte. Définissez ce paramètre sur True lorsque les licences de police n'autorisent pas une police à incorporer dans le fichier PDF. Si False, la police est référencée et ordinateur de la visionneuse utilise une police appropriée si celle créé n'est pas disponible. Valeur par défaut est True.

UseISO19005_1
Boolean

Boolean facultatif Spécifie s’il faut limiter l’utilisation de PDF au sous-ensemble PDF normalisé comme ISO 19005-1. Si la valeur True, les fichiers obtenus sont plus fiables et autonomes, mais peuvent être plus grand ou afficher plus d'artefacts visuels en raison des restrictions du format. Valeur par défaut est False.

FixedFormatExtClassPtr
Object

Optional Object Spécifie un pointeur vers un complément qui autorise les appels à une autre implémentation de code. Cette dernière interprète les descriptions EMF et EMF+ page générées par les applications pour produire des PDF ou XPS propres. Pour plus d’informations, consultez « Extension de la fonctionnalité d’exportation d’Office (2007) Fixed-Format

Remarques

Vous pouvez enregistrer un fichier au format PDF ou XPS à partir d’un programme Microsoft Office 2007 uniquement après avoir installé un complément. Centre de téléchargement Microsoft

S’applique à