ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scan image with none visual components for web base applications of Delphi

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
abbasiali1010@gmail.com Posted - Oct 02 2025 : 01:15:34
Hi,

I am working on a web-based application in Delphi and I need to implement document scanning. Since web applications can only use non-visual components of ImageEn, I am looking for a suitable solution.

Alternatively, if it is possible to scan using TWAIN without requiring visual TWAIN components, that might also solve my problem.

Could you please advise on the best approach? Ideally, I would like to integrate ImageEn with my web-based application for scanning.

Best regards,
Ali Abbasi
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 07 2025 : 13:38:02
Hi Ali

I'm sorry, but at this time, ImageEn does not offer scanner drivers (including network ones).

Nigel
Xequte Software
www.imageen.com
abbasiali1010@gmail.com Posted - Oct 07 2025 : 01:56:36
Hello

Thank you for your response.
The scanning program is with VCL, then we convert it to a service, we can use it in a Delphi web application.
If you have such a sample, please give it, and if you don't have it, please make it and I will check it that way.
Then imageen will be able to serve under the web and this is great.
I will be there to test any kind of that program

Regards

Ali Abbasi
xequte Posted - Oct 06 2025 : 08:21:36
Hi Ali

That is correct. If there is no scanner driver on the system, then ImageEn will not be able to interact with the scanner. It might be possible for you to find a driver that can communicate with a scanner over a network, but I'm not familiar with that.

Nigel
Xequte Software
www.imageen.com
abbasiali1010@gmail.com Posted - Oct 05 2025 : 05:30:48
Hi Nigel

Thank you for answering my questions.
I tested it on a real server, unfortunately it does not scan.
The scanner must be installed on the server to work, because the framework for my Delphi web base programming, unigui, works on the server side.
I use a Windows program to scan and send to the server.
I think that scanners that work with the network that work with IP can be used for web base, and I can put it in a HUB Switch on the network and call the above scanner IP from the client side?
Is this how scanners that work with IP work?
Please post the code sample with none visual components for web base here, I would be grateful.

procedure TDocumentsForm.btnScanClick(Sender: TObject);
var
  bmp: TBitmap;
  io: TImageEnIO;
  DestPath, Field1, Field2, FileName: string;
begin
  LabelMessage.Caption := ''; // Clear previous message
  bmp := TBitmap.Create;
  try
    io := TImageEnIO.CreateFromBitmap(bmp);
    try
      try
        if io.Acquire then
        begin
          // Get field values
          Field1 := UniMainModule.FDMain_Query.FieldByName(UniServerModule.Global_field_name_documents).AsString;
          Field2 := UniMainModule.FDMain_Query.FieldByName(UniServerModule.Global_field_name).AsString;

          // Destination path
          DestPath := IncludeTrailingPathDelimiter(UniServerModule.StartPath) + 'documents\' + Field1;
          if not DirectoryExists(DestPath) then
            ForceDirectories(DestPath);

          // Unique file name
          FileName := DestPath + '\' + Field2 + '_' + FormatDateTime('yyyymmddhhnnsszzz', Now) + '.jpg';

          // Save file
          io.SaveToFile(FileName);

          // Refresh the form
          RefreshDocuments;

          // Log success
          UniMainModule.MyLogDBUni('Scan image in DocumentsForm', 'yes');

          // Show success message to user
          LabelMessage.Caption := 'Image scanned and saved successfully.';
        end
        else
          LabelMessage.Caption := 'Error acquiring image from scanner.';
      except
        on E: Exception do
          LabelMessage.Caption := 'Error saving file: ' + E.Message;
      end;
    finally
      io.Free;
    end;
  finally
    bmp.Free;
  end;
end;


Regards

Ali Abbasi
xequte Posted - Oct 02 2025 : 10:58:17
Hi Ali

Yes, see the properties and methods of the AcquireParams property:

http://www.imageen.com/help/TImageEnIO.AcquireParams.html

Nigel
Xequte Software
www.imageen.com
abbasiali1010@gmail.com Posted - Oct 02 2025 : 04:15:23
Hi Nigel

I will test your help.
Can I select acquire source (scanner source) with none visual components?
Or can select acquire source with other sulutions?

Best regards

Ali

Regards

Ali Abbasi
xequte Posted - Oct 02 2025 : 01:31:26
Hi Ali

Scanning in ImageEn uses the non-visual component, TImageEnIO:

https://www.imageen.com/help/TImageEnIO.html

You can create a TImageEnIO dynamically and attach a bitmap to it:

https://www.imageen.com/help/TImageEnIO.AttachedIEBitmap.html


Or you can use the embedded TImageEnIO of a TIEBitmap (using iexHelperFunctions unit):

http://www.imageen.com/help/TIEBitmapHelper.IO.html

Nigel
Xequte Software
www.imageen.com