Welcome! Log In Create A New Profile

Advanced

[WD27] - Program works with GO but don't works if i call the exe

Posted by pao 
pao
[WD27] - Program works with GO but don't works if i call the exe
July 08, 2022 03:51PM
The test is made in the same PC, using the same files.
The same program works fine in WD14.
The project puts one PDF file in one image conntrol and saves the image control in PNG format.
When I use the GO i can see the content of the PDF in the IMAGE CONTROL a it saves the PNG file, if i run the EXE the image control looks empty.

The the only code used in the project is in the initialization of the image control:

MySelf..Height = 1160
MySelf..Width = 820

MySelf..Value = CompleteDir(fExeDir)+"APT2B9B.pdf"

MultitaskRedraw()

Info(MySelf..PageNumber,MySelf..NumberPage)

dSaveImagePNG(MySelf,CompleteDir(fExeDir)+"PDF_IN_PNG")

//Close()

The info in debug mode (GO) shows 1 1 and in execution mode 0 0

Regards

Paulo Oliveira



Edited 3 time(s). Last edit at 07/08/2022 05:27PM by pao.
it can be either :

1. the pdf file is NOT where you think it is, which you can easily test with a "if ffileeexist"

2. The pdf handling dll is NOT in your directory, which you can easily check by copying ALL windev dlls in it
Re: [WD27] - Program works with GO but don't works if i call the exe
July 11, 2022 10:51AM
MySelf..Value = CompleteDir(fExeDir)+"\APT2B9B.pdf"

[infosonline.net]



Edited 1 time(s). Last edit at 07/11/2022 10:52AM by infos.
pao
Re: [WD27] - Program works with GO but don't works if i call the exe (SOLVED)
July 11, 2022 12:11PM
Thanks Argus,
The wd270pdf64.DLL was missing in my EXE dir.
When I generate the EXE it wasn't proposed and a didn't check as i should.

Regards

Paulo Oliveira
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: