Solved

GdipSaveImageToFilereturn 7

Posted on 2011-03-17
1
149 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 125 total points
ID: 35176994
One option is to check if the file already exists and use a different file name.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now