PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio â†’ WINDEV 2024 â†’ Is WD suitable for such a project?
Is WD suitable for such a project?
Iniciado por guest, 27,abr. 2015 17:10 - 15 respuestas
Publicado el 27,abril 2015 - 17:10
I have a request from a client to build a software. Some of its main features are:

1. Allow client to select a folder which will contain lots of images in multiple formats
2. From this folder only load those images which are in JPEG format as thumbnail in the window
3. The images will be quite big. In some cases the size will be as big as 30MB per image file
4. Allow user to select multiple images for this we have to give a check box for each image shown and the user should be able to select an image by check marking it
5. Allow to user to generate PDF file of thumbnails of selected images
6. User will enter the required data for generating the PDF file like for example Page Size, number of columns, to show file name or not, etc.
7. Based on this we have to calculate the largest possible size of image thumbnail and generate PDF file with multiple pages depending on the number of images selected
8. After the PDF is generated we have to copy the selected images to a pre designated folder
9. Upload the selected images to a FTP

Of course there other features but they are mundane and easy to implement.

So before I start on this project I would like to know if it is possible to perform such things in WD or should I choose some other Dev tool.

At present my choice goes with Delphi as far as this project is concerned, but I personally would like to give WD a spin for such a resource intensive project that has to deal with heavy duty files.

All WX experts please do pour your inputs.

TIA

Yogi Yang

PS: There is no image processing involved here only image file management like copy and upload to FTP
Publicado el 27,abril 2015 - 17:32
Hi Yogi

your question means that you fear that there would be problems because of the size of each image...

However, it's very easy to solve that question for you:
1. get a 30MB image somewhere
2. in windev, load this image in a miniature size field in your window (100%)
3. SAVE the image using dsaveimageJPG (the saved image will be at the thumbnail size, so very small) in a spearate directory
4. Reload the image field with the thumbnail
5. from now on, always work with the thumbnail (same name, thumbnail directory) except if:
- original image has changed (size, date/time)
- you need to print the HQ picture

Now, I haven't tried to work with tons of 30 MB pictures, and to be perfectly honest, I wouldn't try... I would just use the system above... However, it's possible that windev 64 bits would have no problem dealing with huge pictures on a powerful machine, but why bother trying?

Best regards
Publicado el 27,abril 2015 - 17:43
if you don't need to generate the thumbnail it looks easy to make in windev.
Copy/rename/move the files is very easy, ftp/sftp/ftps it's easy to implement, but be carefull with the ftp and IE11
http://faq.windev.com/8387-ftp_windows_81_ftpcommand_ftpconnect-read.awp…

If you need to generate the thumbnail check the HFSQL thumbnails in the help to see if it solves your problem
http://doc.windev.com/en-US/…

The Thumbnail control is only available in webdev.
http://doc.windev.com/en-US/…
Publicado el 27,abril 2015 - 19:40
Hi Paulo,

the IE11 FTP Bug is fixed since a couple of month.
Publicado el 28,abril 2015 - 07:56
Quote
Fabrice Harari

- you need to print the HQ picture

Are there any other ways to generate PDFs except from report?

TIA

Yogi Yang
Publicado el 28,abril 2015 - 10:19
Michael,
in what version?
Publicado el 28,abril 2015 - 10:23
You can do it by programming, just check all the print functions.
<a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3046065&name=Print_functions">http://doc.windev.com/en-US/&hellip;</a>
Publicado el 28,abril 2015 - 10:36
From https://connect.microsoft.com/IE/feedback/details/808279/ftpopenfile-and-internetwritefile-broken-changed-in-ie11:



The fix was released in October 2014 windows Roll Up (KB2995387).

released for 8.1 and 7, documented here:

http://support.microsoft.com/kb/2995388

Under:

http://support.microsoft.com/kb/2996207

This talks about Network printers that use TCP/IP port cannot print after first document has printed in Windows issue . But the root cause is client computer does not send a FIN packet to the print server after the first print job is finished. This root cause is also same as the FTP issue in IE . But it is fixed . So please install the October Update and let us know

-----------------------------------

But some post above users reporting thats still not working ... I don´t thing so because my users all have IE11 and ftp ist working for me.
Publicado el 28,abril 2015 - 13:19
Hi

if printing the thumbnails is what causes you anxiety, it's very easy with iPrintImage, where you can choose the position and size...

The MAIN problem to have a good result is to have a match between image density and target (screen/printer, etc)... but that is just basic math

Best regards
Publicado el 28,abril 2015 - 17:11
Why is this code giving Error
sDirectory is string UNICODE sAllImageFiles is string UNICODE sAnImageFile is string UNICODE sDirectory = fSelectDir("", "", fPathUNICODE) sDirectory = sDirectory + "\*.jpg" IF sDirectory <> "" THEN sAllImageFiles = fListFile(sDirectory,fPathUNICODE+frNoHiddenDirectory+frNoHiddenFile+frNotRecursive) // For each file found FOR EACH STRING sAnImageFile OF sAllImageFiles SEPARATED BY CR // Add the file into the List View ListAdd(LSV_Pateint_Image,sAnImageFile,sAnImageFile) END END
Publicado el 28,abril 2015 - 19:03
Hi Yogi,

What exactly is the error message and at what line number? It will help us helping you.

Best regards,
Alexandre Leclerc
Publicado el 28,abril 2015 - 19:43
Regarding the ftp problem, i can work with FTPSend and FTPGet but i can't work with FTPCommand.

I'm using WD18 and one AS400 as the ftp server.
The error using FTPCommand to get one file using RETR is:
Error at line 14 of Click ftp1 process.
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC SOFT Hot Line and specify:
- the error circumstances,
- a window, a project or the code lines used to replicate the problem,
- the details below.

Détails techniques :

Module : MSVCRT.dll
Adresse de base : 76EE0000
Erreur système : Access violation (GPF)
EIP = 76EEF1AB
OS : Windows 8 (6.2.9200)

----- Informação técnica -----

Projecto : tst_geral

WL call:
Process of 'Click ftp1' (tst_ftp.ftp1), line 14, thread 0

What happened?
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC SOFT Hot Line and specify:
- the error circumstances,
- a window, a project or the code lines used to replicate the problem,
- the details below.

Détails techniques :

Module : MSVCRT.dll
Adresse de base : 76EE0000
Erreur système : Access violation (GPF)
EIP = 76EEF1AB
OS : Windows 8 (6.2.9200)

- CĂłdigo de erro: u
Level: fatal error (EL_FATAL)

Dump of the error of 'wd180vm.dll' module (18.0.150.7).
Identifier of detailed information (.err): 1020
- Imformação de depuração:

Détails techniques :

Module : MSVCRT.dll
Adresse de base : 76EE0000
Erreur système : Access violation (GPF)
EIP = 76EEF1AB
OS : Windows 8 (6.2.9200)
Registres :

EIP = 76EEF1AB EBP = 0018DB84
EAX = 7FFFFFFE EBX = 00000000
ECX = 00000001 EDX = FFFFFFFF
ESI = 00000001 EDI = 0018E6DC

Pile des appels :

[MSVCRT.dll (76EE0000)] 76EEF180 : tolower() + 43 bytes
[MSVCRT.dll (76EE0000)] 76EEF9F0 : vsnprintf_l() + 84 bytes
[MSVCRT.dll (76EE0000)] 76EEF9C0 : vsnprintf() + 24 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 24664 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 22975 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 21902 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 19356 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 23862 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 23427 bytes
[wininet.dll (73C30000)] 73D3B020 : InternetFindNextFileW() + 653 bytes
[wininet.dll (73C30000)] 73D37360 : FtpSetCurrentDirectoryA() + 1167 bytes
[wininet.dll (73C30000)] 73D36740 : FtpCommandA() + 95 bytes
[wininet.dll (73C30000)] 73D39960 : FtpCommandW() + 204 bytes
[wd180com.dll (26260000), 18.0.81.0, 01A180063c] 262876D8 : ExecFTP() + 52809 bytes
[wd180com.dll (26260000), 18.0.81.0, 01A180063c] 262876D8 : ExecFTP() + 53690 bytes
[wd180com.dll (26260000), 18.0.81.0, 01A180063c] 262876D8 : ExecFTP() + 7371 bytes
[wd180com.dll (26260000), 18.0.81.0, 01A180063c] 262876D8 : ExecFTP() + 14452 bytes
[wd180com.dll (26260000), 18.0.81.0, 01A180063c] 262F2008 : Execution() + 23363 bytes
[wd180vm.dll (25E60000), 18.0.150.7, 01A180063c] 25F76AA0 : InfoVersionWeb() + 574786 bytes
[wd180vm.dll (25E60000), 18.0.150.7, 01A180063c] 26074270 : pQueryProxy() + 422652 bytes
[wd180vm.dll (25E60000), 18.0.150.7, 01A180063c] 25EE5120 : EXT_bSetVariableCollection() + 365376 bytes

- Informação adicional:
EIT_PILEWL :
Click ftp1 (tst_ftp.ftp1), linha 14
EIT_DATEHEURE : 28/04/2015 18:41:16
Publicado el 29,abril 2015 - 09:07
Quote
Alexandre Leclerc

What exactly is the error message and at what line number? It will help us helping you.
Actually the IDE show error and does not compile the code.

It says invalid syntax.

If I remove the variable used in last parameter and replace it with a string it works!
ListAdd(LSV_Pateint_Image,sAnImageFile,sAnImageFile) //<= Gives error
But

ListAdd(LSV_Pateint_Image,sAnImageFile,"My Test Photo") //<= Does not give error
TIA

Yogi Yang
Publicado el 29,abril 2015 - 10:56
Hi Yogi, i don't know if it's a unicode problem but you can try with:
ListAdd(LSV_Pateint_Image,sAnImageFile,unicodetoansi(sAnImageFile))
Publicado el 29,abril 2015 - 14:06
Hi Yogi,

This means WD17 does not support UNICODE in the ListAdd() function. Just use a standard ANSI string and it should solve your problem.

Best regards,
Alexandre Leclerc
Publicado el 29,abril 2015 - 16:48
Paulo & Alexandre,

You both are right.

List control does not support UNICODE for image file.

Regards,

Yogi Yang