[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

GdipSaveImageToFilereturn 7

Posted on 2011-03-17
1
Medium Priority
?
168 Views
Last Modified: 2012-05-11
am trying to use the Twain class to scan images, but i got the result 7 in the folling statement

    st = GdipSaveImageToFile(img, sd.FileName, clsid, IntPtr.Zero)

its seems that this happen when i save on the same file for second time.

any idea to fix this ? i tried to delete  the d\file before the second scan but its lts seems locked

0
Comment
Question by:nasemabdullaa
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 35176994
One option is to check if the file already exists and use a different file name.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
Loops Section Overview
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question