Scan A file in web application......
Started by manoj at 09-02-2008 9:05. Topic has 17 replies.
|
|
09-02-2008, 9:05
|
manoj
Joined on 08-02-2008
Posts 29
|
|
|
Hello,
1. Is it possible to use Leadtools Twain in a client-server application?
2.If Yes, how is it possible?
I am writing the second question in detail:
I want to develop an application which runs on the server.The client access the server application and want to scan a file using the local scanner,installed on his/her PC.
I got a file from some of ur forum which I am attaching with this mail.I dont know how to use it in the client-server application I am developing.
Thank You
|
|
|
|
|
Report
|
|
|
|
09-02-2008, 11:12
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: Scan A file in web application......
|
 
 
|
|
|
You were on the right track, but we actually made a sample project that shows how to do Twain on the client side and upload the images to the server. Take a look at this example:
http://support.leadtools.com/SupportPortal/cs/forums/18445/ShowPost.aspx
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-04-2008, 3:25
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: Scan A file in web application......
|
 
 
|
|
|
Thank u for ur reply....
I used the link u nave provided to download the example...but wen i try to open the project an error message is displayed...
' ScanUploadSite.csproj' cannot be opened.
The project type is not supported by this installation.
I am using Leadtools Eval on Vista Bussines edition along with VS2005....
|
|
|
|
|
Report
|
|
|
|
09-04-2008, 8:41
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: Scan A file in web application......
|
 
 
|
|
|
You need to install SP1 for VS2005 and the SP1 update for Vista:
http://www.microsoft.com/downloads/details.aspx?familyid=bb4a75ab-e2d4-4c96-b39d-37baf6b5b1dc&displaylang=en
http://www.microsoft.com/downloads/details.aspx?familyid=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&displaylang=en
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-05-2008, 6:05
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: Scan A file in web application......
|
 
 
|
|
|
I am attaching a query and the project file in the zipped file....
query file name is 05Sept 08
|
|
|
|
|
Report
|
|
|
|
09-05-2008, 8:09
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: Scan A file in web application......
|
 
 
|
|
|
I have created the attached application but it is giving error...
Unable to cast object of type 'System.String' to type 'System.Windows.Forms.IWin32Window'...
|
|
|
|
|
Report
|
|
|
|
09-05-2008, 16:19
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: Scan A file in web application......
|
 
 
|
|
|
I'm sorry, but your attachments had LEADTOOLS dlls in them so they had to be taken down. Please re-upload your files following these guidelines:
NOTE: If you are attaching a project or file to the forums... 1.) Zip the file(s) up. 2.) Make sure it is less than 5 MB. If it is larger, please send an email to support@leadtools.com and we'll send you FTP instructions. 3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs. 4.) Do not click the preview button, the attachment will not show up when you post it.
If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to support@leadtools.com and make sure that you include a link to this forum post.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-08-2008, 6:22
|
manoj
Joined on 08-02-2008
Posts 29
|
|
|
I am attaching a query and the project file in the zipped file.... my query file name is '05 Sept 08.doc'
|
|
|
|
|
Report
|
|
|
|
09-08-2008, 7:18
|
manoj
Joined on 08-02-2008
Posts 29
|
No need to reply for the last post.
|
 
 
|
|
|
Hi GregR,
Ok now I am able to run the project. No need to reply for the last post.
Actully i was clicking on CreateCab.bat file to open it and edit,which did not work...
Then I tried opening the file from VS interface and did the required change in the path of 'cabarc.exe' .
Now I am facing another problem. When I run the application a warning is displayed.
' Window has blocked this software because it cannot verify the publisher' 'Name:ScanUpload.cab'.This may be probabily because of some Active X control.
My question is:
1. Is it reliable to allow the control ie ActiveX to be allow.
2.I am using IE7 on Vista. What and which option should I activate so that the warning is not displayed?
Thank you
|
|
|
|
|
Report
|
|
|
|
09-08-2008, 9:09
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: No need to reply for the last post.
|
 
 
|
|
|
This is because the CAB file is not signed. Please read the word document that came with the project. More specifically, see #3 in the Notes section. There should be a link to an article on MSDN that explains CAB files and how to use them in more detail.
Security settings within IE and creating signed CAB files is a Microsoft issue, so if you need further help with those issues, please contact Microsoft. My suggestion would be to sign the CAB file rather than simply lowering security settings.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-09-2008, 7:10
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: No need to reply for the last post.
|
 
 
|
|
|
Hi Greg,
To register the cab u have requested to me to see the following url:
1. http://support.microsoft.com/kb/q247257/#appliesto
But it has
Microsoft .NET Framework software development kit (SDK) 1.1 download and cab register option.
2. Also there is following
NET Framework 2.0 Software Development Kit (SDK)
present under the url
http://www.microsoft.com/downloads/details.aspx?familyid=fe6f2099-b7b4-4f47-a244-c96d69c35dec
On the above site it is also mention that SDK is automatically installed in VS2005 Professitional Edition.
Please guide me which option should I use from above two.
And one more thing, The Url u refered has steps to register cab. I have to follow the same steps command without changing anything in it(can I copy paste the command and use after SDK is installed).If no, what r the changes that I should make.
Beside this can u plz give a document which guide me step by step how to do create client server application.It will help u also as i will be able to do every step and understand what is happening.Also what is Cab required. (In short I need a tutorial kind of the thing).
Thank You
|
|
|
|
|
Report
|
|
|
|
09-09-2008, 8:41
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: No need to reply for the last post.
|
 
 
|
|
|
I'm sorry, but the questions you have are outside the scope of LEADTOOLS support. Creating and signing a CAB file is a Microsoft technology and you would run into the same problem if you were to create an .NET UserControl without LEADTOOLS. Please contact Microsoft for help with creating and signing your CAB file.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-09-2008, 9:04
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: No need to reply for the last post.
|
 
 
|
|
|
Thanks for repling.
But can't u provide the document, how to create client server application step by step also. Atlease that should be possible.
Thank You
|
|
|
|
|
Report
|
|
|
|
09-09-2008, 9:30
|
GregR

Joined on 05-31-2006
In House
Posts 1,806
|
Re: No need to reply for the last post.
|
 
 
|
|
|
I'm not sure what you mean. The demo itself is a client-server application.
Are you wanting something to be done on the server side whenever a new image is uploaded?
Please explain your goals in more detail.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
09-11-2008, 9:11
|
manoj
Joined on 08-02-2008
Posts 29
|
Re: No need to reply for the last post.
|
 
 
|
|
|
Hai GregR,
Ok now the demo application is working
from the following post: http://support.leadtools.com/SupportPortal/cs/forums/18445/ShowPost.aspx
My next question is if I change something in the ScanUpload.cs user control it is not getting reflected in the Web application.
1.How can it be made possible?
2.Once I created a user control library how can I get a cab file created from the dll like u did in ur application.
I have refered through all the url in the document that is present in the zip file.But could not find ways to create cab file the way u did in ur application.In short can u guide me create cab the way u did.
I will be greatfull to you.
Bye
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Scanning/Captur... » Scan A file in web application......
|
|
Copyright LEAD Technologies, Inc. 2008
