Hi
In below code i want to save file as DocumentNo+currentDate+filename.jpg. I am using Vb6
outputStream.SaveToFile "C:\image.jpg"
Thanks
Hi
In below code i want to save file as DocumentNo+currentDate+filename.jpg. I am using Vb6
outputStream.SaveToFile "C:\image.jpg"
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sangeetha SPosted Mar 21, 2025, 9:16 AM
Eliana BlakePosted Mar 19, 2025, 11:13 AM
Hello there! It seems you are trying to save a file in a specific format using VB6.
To achieve the format you described (DocumentNo + currentDate + filename.jpg), you can modify the "outputStream.SaveToFile" line to include the desired format. Here's an example of how you can achieve this in VB6:
In this snippet, I used placeholders for DocumentNo, currentDate, and fileName. You can replace them with your actual values or variables. The "savePath" variable concatenates these values to form the desired file path including the .jpg extension.
This way, when the file is saved using the modified path, it will follow the format you specified (DocumentNo + currentDate + filename.jpg).
I hope this helps clarify how to save the file in the specified format. If you have any more questions or need further assistance, feel free to ask!