Using monstream As New IO.MemoryStream(My.Resources.monpdf) monstream.WriteTo(New IO.FileStream("monpdf.pdf", IO.FileMode.OpenOrCreate)) End Using Process.Start("monpdf.pdf")
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionUsing monstream As New IO.MemoryStream(My.Resources.monpdf) using monfichier as new IO.FileStream("monpdf.pdf", IO.FileMode.OpenOrCreate) monstream.WriteTo(monfichier) end using End Using Process.Start("monpdf.pdf")
Using monstream As New IO.MemoryStream(My.Resources.monpdf) using monfichier as new IO.FileStream("monpdf.pdf", IO.FileMode.OpenOrCreate) monstream.WriteTo(monfichier) end using End Using
Process.Start("monpdf.pdf")
if not my.computer.filesystem.fileexists(...) then
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click If Not My.Computer.FileSystem.FileExists("Doc1.pdf") Then Using monstream As New IO.MemoryStream(My.Resources.Doc1) Using monfichier As New IO.FileStream("Doc1.pdf", IO.FileMode.Create) monstream.WriteTo(monfichier) End Using End Using End If Process.Start("Doc1.pdf")