473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

scan task

Hi all,

I used a perl script to trigger a scanner to create a pdf file and store it a specific loaction (predefined in the script). This process seemed to be working OK if I ran the script from window command line. However, when I try to run this script from a browser, nothing is happening at all. Please help....
Jan 19 '07 #1
6 1751
KevinADC
4,059 Expert 2GB
post your code or a link to it if it's too long. Could be a path or permissions problem.
Jan 19 '07 #2
Here is the code that I used :

#!perl
use Win32::Scanner::EZTWAIN;
my $scanner = new Win32::Scanner::EZTWAIN();
$scanner->select_image_source();
$scanner->acquire_to_file("C:\\ScanTest\\test2.pdf");

exit;

I used IIS service to run perl.

Thanks
Jan 19 '07 #3
KevinADC
4,059 Expert 2GB
I suggest you read the module documentation and check the return value of the acquire_to_file() method. The module document lists the return values you can use to help determine whats happening:


http://search.cpan.org/~lennerto/Win....01/EZTWAIN.pm
Jan 19 '07 #4
I suggest you read the module documentation and check the return value of the acquire_to_file() method. The module document lists the return values you can use to help determine whats happening:


http://search.cpan.org/~lennerto/Win....01/EZTWAIN.pm
The problem does not lie on the 'acquire_to_file()' method but the ' select_image_source(); '. When the whole script is ran from the command line, the return value is 1, which mean that a pop window will show up for user to choose which image source installed on their PC. However, when I ran the script from the browser, the process will be stop at this select method and will not continue and no popup window for user to choose the image source. I really appreciate for any kind of help...
Thanks
Jan 20 '07 #5
KevinADC
4,059 Expert 2GB
sorry, thats about all the help I can be with this question.
Jan 20 '07 #6
Hi.
This might seem dumb.
But is your sacnner connected to your web server computer? When running on the browser, the server will be running the code, hence search the image source from its ports, not from the client's.
Feb 8 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Marcus | last post by:
Hi I have a very complex sql query and a explain plan. I found there is a full table scan in ID=9 9 8 TABLE ACCESS (FULL) OF 'F_LOTTXNHIST' (Cost=84573 Card=185892...
3
by: Carlos Moreno | last post by:
I can't find a reasonable explanation for this. I have a table game, with primary key gameid (an int). If I use a where involving gameid and <, or >, or <=, or >=, then I get a sequential...
3
by: Mark Harrison | last post by:
I have indexed two columns in a table. Can somebody explain to me why the first query below uses an Index Scan while the second uses a Seq Scan? Many TIA! Mark planb=# \d abcs Table...
6
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook)...
4
by: xixi | last post by:
hi, we are using db2 udb v8.1 on windows, if i have a query use where clause where key > value, the explain sql gives me access path is table scan, but if i do key = value, it uses index scan, so...
1
by: Giloosh | last post by:
hello, i would like to scan a customers driver license and have it pull up thier information into access. i beleive this will save alot of time and typos. is this legal to do? are there any...
10
by: Dia | last post by:
At the company I work job applicants are required to do a little test. The human resource manager recently had a candidate who claimed one of the questions was ambiguous. Dependent upon the...
0
by: sameer | last post by:
Hi all, ..net framwork 1.1 sql server 2000 I have a vb.net winforms application using webservices\ remoting to upload documents\ images to the webserver and i am gong to store them in the sql...
1
by: shilpasharma | last post by:
Hi, Can anybody let me know how I can optimise following Query. Select * from reports where ( exists ( SELECT 1 FROM results_required rr, item_claims_trials ict, results res WHERE...
2
by: BD | last post by:
Hi, all. My background is more Oracle than db2. My skills at SQL tuning are quite limited. I'm running 8.2 on Windows. I'm tasked with some SQL optimization, and am doing some explain plans...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.