Converting from ActiveX to .NET SDK

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
tony_c
Posts: 6
Joined: Tue May 22, 2018 5:21 pm

Converting from ActiveX to .NET SDK

Post by tony_c » Wed Jun 13, 2018 6:04 pm

We are trying to replace VSTwain ActiveX control with .NET SDK on our ASPX web application. One of the functionalities that we are using from ActiveX is to do multi-page scanning without showing the UI. Currently this is all JavaScript code using the ActiveX object. Below is the code snippet of the JavaScript code that is currently using the ActiveX object VSTwain.

Code: Select all

VSTwain.tiffMultiPage = true             // multi page TIFF file
VSTwain.tiffCompression = 10           // auto detect of best compression algorithm

VSTwain.OpenDataSource()
VSTwain.unitOfMeasure = 0
if (!showUIChk.checked) 
{
    VSTwain.resolution = scanResolution
    VSTwain.pixelType = pixelType;
}

VSTwain.maxImages = 1000;
VSTwain.xferCount = -1;
I want to know how to mimic this code using the Vintasoft JavaScript API. Is there an equivalent of properties like xferCount in the JavaScript API? Is there documentation or examples that I can refer to?

Thanks,

Tony

Alex
Site Admin
Posts: 1573
Joined: Thu Jul 10, 2008 2:21 pm

Re: Converting from ActiveX to .NET SDK

Post by Alex » Thu Jun 14, 2018 11:52 am

Hello Tony,

On-line documentation for VintaSoft Twain .NET SDK is available here:
https://www.vintasoft.com/docs/vstwain- ... rview.html

Please read the "Programming" section in documentation and let me know if you will have any question or problem.

Also please see our on-line demo here:
http://demos.vintasoft.com/AspNetTwainDemos/

Best regards, Alexander

Post Reply