1)Will you still operate the output stream after executing form.Save()? If not, you could just use the the following constructor, the file will be created and closed simply and correctly:
Dim Label As Form = New Form(“C:\BarCodePrint.pdf”, “C:\BarCodeOutput” & TicketNumber.Text & “.pdf”)
2) If the problem still occurs, please tell me the code of your basic operation about the form and the new output stream. Or send me the complete code and template, i will test it for you.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.