2021年4月6日星期二

VB.NET Saving Genereted QR Code to specific Folder not working

I'm trying to saved Generate QR Code to specific Folder but the problem is its still saving in the application Folder

Here is the code in my button 1

SaveImageCopy(TextBox1.Text, PictureBox1.Image)

Here is the code of Saving The Location of QR Code

 Dim path As String = "C:\LIST OF QR CODE" & filename & ".jpg"          Dim dest As New Bitmap(image.Width, image.Height)          Dim gfx As Graphics = Graphics.FromImage(dest)          gfx.DrawImageUnscaled(image, Point.Empty)          gfx.Dispose()          dest.Save(filename & ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg)          dest.Dispose()  

So what seems to be the problem here? I Specifically said that it should be saved in "C:\LIST OF QR CODE" so why it is saving in Application Folder?

https://stackoverflow.com/questions/66979412/vb-net-saving-genereted-qr-code-to-specific-folder-not-working April 07, 2021 at 12:05PM

没有评论:

发表评论