ImportWMF

Post Reply
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

ImportWMF

Post by E. Bartzokas »

Hi all,
This is the first time that I register to this form, and would like
to wish to each and everyone the best.

Here is the problem:

(Please notice that I work for Paysoft Inc., a registered user of FWH)

We use FWH (Jan. 2006 download), and xHB Professional (Dec. 2005 download).

Our application uses approx. 600 forms in .WMF that are loaded at run time with function ImportWMF(cFile), and then we print whatever number and strings on the form. All these .WMF's have been created with Corel Draw.

It appears that it worked fine in the 16-bit environment, however, now that we are converting our program to 32-bits, we run into the problem of not been able to load those WMF's any more, due to the Enhanced Metafile (.EMF) used recently.

My question is: how can we resolve this problem without having to convert each and every form through Corel ?

I have notice that TENHMETA.PRG contains a Static Function WMF2EMF at the end, plus three DLL32 calls. Has this function anything to do with converting a WMF to EMF, and if yes how ?
The two of the DLL32 calls at the end of the file contain calls to GDI, that according to Microsoft are now not supported, such as GeTEnhMetaFileBitsEx (now GeTEnhMetaFileBits) and SetWinMetaFileBits (now SetMetaFileBits).

As you understand, I am lost now :shock:

How can I deal with this problem?
Any advise and a working sample would be appreciated, by me and my boss Mr. Chris Makris.

Thank you for your attention.

Evans Bartzokas
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: ImportWMF

Post by Enrico Maria Giordano »

From the whatsnew.txt file of July 2005 build:
* Enhancement: Class TPrinter Method ImportWMF() is already available for 32 bits.
You have to save your WMF files as EMF (enhanced metafiles) ones. You may use a tool
like "Paint Shop Pro" to do this conversion. Please review samples\corel.prg.
EMG
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: ImportWMF

Post by E. Bartzokas »

Enrico hi,
Thanks for the info, but am already aware of this (it is noted on my post).
I do not think that there is no other solution or another way...
I just think that I should wait for more replies, especially from our best of the best "Antonio Linares". Antonio can workout some solution.
I'm sure that if we can read an .EMF, we can also read a .WMF and convert it on the fly...

Regars
Evans

EnricoMaria wrote:From the whatsnew.txt file of July 2005 build:
* Enhancement: Class TPrinter Method ImportWMF() is already available for 32 bits.
You have to save your WMF files as EMF (enhanced metafiles) ones. You may use a tool
like "Paint Shop Pro" to do this conversion. Please review samples\corel.prg.
EMG
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: ImportWMF

Post by Enrico Maria Giordano »

E. Bartzokas wrote:Enrico hi,
Thanks for the info, but am already aware of this (it is noted on my post).
I do not think that there is no other solution or another way...
I just think that I should wait for more replies, especially from our best of the best "Antonio Linares". Antonio can workout some solution.
I'm sure that if we can read an .EMF, we can also read a .WMF and convert it on the fly...
Yes, it maybe. :-)

EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Evans,

Have you considered to use a tool like this ?
http://www.convertzone.com/net/cz-advan ... mf-emf.htm
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Sakis
Posts: 41
Joined: Fri Oct 21, 2005 2:12 pm
Location: Athens

Post by Sakis »

Evans

I know the right person who may solve your problem. He is seating next to me.... MANOS SV1COD.


Greetings

Dionisis and MANOS
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Post by E. Bartzokas »

Sakis wrote:Evans

I know the right person who may solve your problem. He is seating next to me.... MANOS SV1COD.


Greetings

Dionisis and MANOS
Yia sas paidia!

Looks like there is something that can be done, with automatic conversion at run time, or am I wrong?

My phone is 693-919-6457. Any time you want to contact me, please give me a ring and I'll call you back to revert phone charges, or we may continue our conversation through Net Meeting.

Thanks a lot
Vagelis KD3HNA (by the way I have a US general radio amt. license)
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Post by E. Bartzokas »

Sakis wrote:Evans

I know the right person who may solve your problem. He is seating next to me.... MANOS SV1COD.


Greetings

Dionisis and MANOS
Mano, xachkame !
Twra se cymhchka.
Vagelis
Pare me sto 693-919-6457... perimenw
Post Reply