Hi
I want when user clicks Capture Image should get saved in App.Path folder and should get printed when print is taken.
I want it in Vb6.
What is the best way .
Thanks
Hi
I want when user clicks Capture Image should get saved in App.Path folder and should get printed when print is taken.
I want it in Vb6.
What is the best way .
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Daniel WrightRank #2,947 · 489 reputationPosted Mar 12, 2025, 9:08 AM EDT
To achieve capturing a photo using VB6, saving it in the App.Path folder, and enabling printing, you can follow these steps:
1. Capture Image: You can utilize the Windows Imaging Acquisition (WIA) libraries to capture images from a camera or scanner. Here's a basic example of how you can capture an image using WIA in VB6:
Dim wiadev As New WIA.CommonDialog Dim imgFile As WIA.ImageFile Set imgFile = wiadev.ShowAcquireImage ' Save captured image to App.Path imgFile.SaveFile App.Path & "\captured_image.jpg"2. Printing the Image: To print the captured image, you can use VB6's Printer object. Here's a simple code snippet to print an image in VB6:
Printer.PaintPicture LoadPicture(App.Path & "\captured_image.jpg"), 0, 0 Printer.EndDocBy combining these steps, you can capture an image, save it in the App.Path folder, and then print it using VB6. Ensure that you handle any potential errors and provide user-friendly prompts or interfaces for a seamless experience.
If you encounter any issues or need further assistance in implementing this functionality, feel free to ask for more help or clarification. Happy coding!
Ramco RamcoRank #462 · 5.4K reputationPosted Mar 12, 2025, 9:19 AM EDT
Hi
What is WIA.commondialog. Do i need to add any references. Which Cameras will it support.
Thanks