mgriit / ScanAppForWeb

This application can scan any document via scanner from web browser.
GNU General Public License v3.0
128 stars 62 forks source link

Connection Failed No Scan app application found in your machine please download,install and open first then refresh the browser #1

Closed nileshyadav326 closed 6 years ago

nileshyadav326 commented 6 years ago

Even after installing getting above error.

on browser console it shows.

Request URL:ws://localhost:8181/ Request Method:GET Status Code:101 Switching Protocols

ls8393 commented 6 years ago

Install the EXE or compile a new one from the provided project.

On Tue, Feb 13, 2018, 2:01 AM nilesh notifications@github.com wrote:

Even after installing getting above error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mgriit/ScanAppForWeb/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ASiTYFP_70UVZR-16Tk2JY73TAtlJQX5ks5tUTNPgaJpZM4SDTPq .

--

nileshyadav326 commented 6 years ago

Not able build Scan_App_Setup Project says incompatible scan_app_setup

ls8393 commented 6 years ago

Don't worry about Scan_App_Setup, publish NewScan that is what you want, then use the "Index.html" to scan

mgriit commented 6 years ago

Just Install Scan_App_Setup.msi from DemoProject > SrcFile at ur pc and use DemoProject/Views/Home/index.html to scan

nileshyadav326 commented 6 years ago

Thanks, awesome script it really helpful. Can u let me know now how to upload the scanned image to the server using javascript?

nileshyadav326 commented 6 years ago

Also, can we save the settings currently every time after restarting the pc need to do the scanner configuration again

image

mgriit commented 6 years ago

Yes you can do it. To do that you have to set default value at Form1 and publish it again .... suppose for load DPI

private void LoadDPI(ICapWrapper<TWFix32> cap)
        {
            // only allow dpi of certain values for those source that lists everything
            var list = cap.GetValues().Where(dpi => (dpi % 50) == 0).ToList();
            comboDPI.DataSource = list;
            var cur = cap.GetCurrent();
            if (list.Contains(cur))
            {
                comboDPI.SelectedItem = cur;
            }
        }

It will get Current DPI of your scanner and set it.