Hi Theo,
First of all, I want to ask for your forgiveness by I not having returned before. I was busy and recently I was able to see the installation of the HP LaserJet 2200 Series PCL 5 printer.
I installed, tested, and unlike my printer's drive, I suppose it requires more than the other. For the error appears eminently in all the times that I have tested.
I still can not solve it but I was able to reach a conclusion, alias thanks to this experience I was able to detect a failure in the IDE and Bos Taurus functions.
I left where everything starts ... in the _HMG_PRINTER_SavePages function of the h_controlmisc.prg file.
I started implementing persistence procedures to isolate problems where Boss Taurus functions significantly is working.
My first thought was in the function where I freed the BITMAPS handle from memory and the
BT_BitmapRelease function does not give a logical return which is replaced by the same
BT_BMP_RELEASE function in C.
As I said, the
BT_BMP_RELEASE,
BT_BitmapLoadEMF, and
BT_BitmapSaveFile functions were enforced to work with persistence routines to ensure large-scale work (multiple pages / files to be converted).
The
COPY FILE command (which has nothing to do with this) has been replaced with the
FileCopy function that works with copied file checking and persistence.
The problem here is in the function
BT_BitmapSaveFile that sometimes obeys, working fine and others not until it causes error of reading of the image by the function
_HPDF_LOAD_JPG that soon precedes and that gives the infamous error:
I do not know what's wrong but I have no idea what the BT_BitmapSaveFile function would be missing.
In my opinion, the function could
reinforce the check of the generated file is an image file.
Because as we know the fault generates a preview file of everything in black color.
You may notice by reviewing the last JPG file that is generated and causing failure.
I wish Claudio could understand me, because my English is certainly reviewed by Google Translator and this is a complicated issue to detect and maybe to solve.
I will continue my testing in search of a solution.
The IDE issue, I am announcing here in this other topic:
http://www.hmgforum.com/viewtopic.php?p=49261#p49261
Pablo César wrote: ↑Tue Feb 07, 2017 9:22 pm
Rathinagiri wrote: ↑Sun Mar 13, 2016 12:43 pm
Sure we shall remove this option inside the print preview. Now you can directly print to pdf if you want to.
This is an old rude method saving the report pages as images. The size of pdf files would be huge if the number of pages are more.
Dear Rathi, are you replacing this feature with something improved or similar ? Because to export method is usefull too even for PDFs files.
Sorry dear friend Rathi to say... but please accept to review this, please
Because IMHO, this is very hard to accept the cutting off of this feature, since that function you yourself did and that you said is rudimentary. In fact much of its implementation is very practical for last users, useful and yet should work very well.
The problem is something else ...