
Convertir archivo word (docx) a imagen (jpeg)
Publicado por Jesús (25 intervenciones) el 20/06/2015 21:26:52
Me preguntaba si alguien sabe cómo convertir un fichero docx en jpeg, estoy usando el siguiente codigo pero me da fallo en imagetype (entre los dos emoticonos)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Imports Microsoft.Office.Interop
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim document As New Word.Document
document.LoadFromFile(My.Computer.FileSystem.SpecialDirectories.Desktop & "\plantilla2.docx")
Dim image As Image = document.SaveToImages(0,='/img/emoticons/sad.gif' width='22' height='22' border='0' />imagetype
='/img/emoticons/sad.gif' width='22' height='22' border='0' />.Metafile)
image.Save("toimage.jpg")
System.Diagnostics.Process.Start("toimage.jpg")
End Sub
End Class
Valora esta pregunta


0