Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27184

VS 2010 [RESOLVED] Creating a folder in desktop

$
0
0
Hello to all, any idea how to automaticly with aplication create folder in desktop

I don't whant to directly save it to Desktop, but I whant that application (it selves) create a folder "New", where would save my File.pdf, Here is code.

Code:

Dim WorkingFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
Dim WorkingFile = Path.Combine(WorkingFolder, "File.pdf")
Dim fs As New FileStream(WorkingFile, FileMode.Create, FileAccess.Write, FileShare.None)
Dim document As New Document(PageSize.A4, 27, 27, 30, 30)
Dim writer As PdfWriter = PdfWriter.GetInstance(document, fs)

thanks for help

Viewing all articles
Browse latest Browse all 27184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>