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.
thanks for help
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)