Salut J'utilise une visionneuse de document WPF pour afficher un document. Y at-il un moyen de sauvegarder le document au format PDF? J'ai utilisé WPFReports pour générer un rapport.WPF Visionneuse de document au format PDF
0
A
Répondre
0
Pour autant que je sache, non, vous ne pouvez pas. Cependant, vous pouvez convertir DocumentViewer en XPS, puis en PDF.
0
<Label>
<Hyperlink Click="lnkSelectDocument_Click">
<Label Content="{Binding ShortFielName}">
</Label>
</Hyperlink>
</Label>
private void lnkSelectDocument_Click(object sender, RoutedEventArgs e) {
try {
System.Diagnostics.Process process = new System.Diagnostics.Process();
string path = "d:\\test.doc";
Uri pdf = new Uri(path, UriKind.RelativeOrAbsolute);
process.StartInfo.FileName = pdf.LocalPath;
process.Start();
process.WaitForExit();
} catch (Exception error) {
MessageBox.Show("Could not open the file.", "Error", MessageBoxButton.OK,
MessageBoxImage.Warning);
}
}
Questions connexes
- 1. WPF: fluxdocument au format PDF
- 2. Enregistrer au format PDF dans WPF
- 3. Contrôle de visionneuse de document?
- 4. PDF Bibliothèques pour afficher un document PDF dans WPF
- 5. contrôle de visionneuse de document
- 6. Suivi au format PDF
- 7. Exporter un document Word au format PDF en utilisant iTextSharp
- 8. PDF au format XPS Conversion via Microsoft XPS Document Writer
- 9. document converti au format PDF en Java en utilisant OOo
- 10. Visionneuse de document Flash
- 11. S'il vous plaît suggérer une visionneuse de PDF pour WPF
- 12. Ecriture HTML au format PDF
- 13. format rtf au pdf
- 14. Visionneuse de rapports VS2008 CR. Imprimer et exporter au format PDF ne fonctionne pas
- 15. Comment générer des rapports Crystal au format PDF sans visionneuse de rapports?
- 16. conversion RMD au format PDF
- 17. Exportation de contenu Flash au format PDF?
- 18. Exportation de ListView au format PDF
- 19. Rendu document au format EPUB WP7
- 20. Autoriser les UIViews pour une visionneuse PDF
- 21. Comment afficher le document téléchargé (.doc, .docx, .pdf, .odf) dans la visionneuse de document
- 22. Exportation de page ASP.Net au format pdf
- 23. WPF Application Afficher le document PDF
- 24. iTextSharp peut-il ouvrir un document RTF, le manipuler et exporter le document au format PDF?
- 25. Est-il possible d'insérer une image au format pdf dans un document pdf généré par reportlab?
- 26. Document -> Visionneuse Flash, non hébergée
- 27. Export DataWindow au format PDF
- 28. javascript jsgantt au format PDF
- 29. Placer l'image au format PDF
- 30. itextsharp PostScript au format PDF
Avez-vous un code d'échantillon pour convertir XPS en PDF? –