Page 1 of 4

ways to save report to a file and easily open

PostPosted: Sat Apr 29, 2006 2:01 am
by ShumingWang
Hi,
One of our customers asked me if fwh app can offer a way to save a report to a file, email it to his customers and his customers can open the file and print it in a easily way.
Now they print out then send a fax to his customer, but fax not 100% reliable.

Best regard!

Shuming Wang

PostPosted: Sat Apr 29, 2006 5:07 am
by RuFer
Shuming:

Try EasyPreview from
www.reportdesigner.info

You can save the report in JPG, BMP, WMF, EMF, PNG
and you can send it by mail.
If you have more than 1 page you can save it and compress it and
send the file.zip by mail too.

Regards.

Ruben Fernandez

PostPosted: Tue May 02, 2006 11:25 am
by ShumingWang
Ruben,
If I purchase easypreview,could I intergrade zip,sendmail(hbzlib.dll,mail.dll,nconvert.exe ,epreview.exe,epreview.dbf ) into my app ( link a lib or dll file)? now there are too many files.

Regards!
Shuming Wang

PostPosted: Tue May 02, 2006 12:01 pm
by Marcelo Via Giglio
Hello,

you can add easely the option to save the EMF to another graph format using nconvert.exe

regards

Marcelo

PostPosted: Tue May 02, 2006 1:52 pm
by RuFer
Shuming:

I belive that you canĀ“t, but you can ask to
EasyPreview developpers.

Sorry for my English.

Regards.
Ruben Fernandez.

PostPosted: Tue May 02, 2006 1:53 pm
by RuFer
Marcelo:

How can I do that?

Thank tou.

Ruben Fernandez

PostPosted: Tue May 02, 2006 3:11 pm
by Marcelo Via Giglio
Ruben

you can use nconvert a tools part of xnview.

1.- you can get all the EMF generated for report or print class
by default windows files temporal directory but you can change this
in the tprint data cDir from the resport oReport:oDevice:cDir

This is for FWH previus last 2.7 because I read that the last version generate the EMF with randon prefix name

2.- with nconvert you can export every EMF from the FW report to another format

Shellexecute(, "open","nconvert.exe","-out jpeg .....") you can read the manual
for the best option for you. There are batch option with automatic enumerate

-out jpeg -n 1 10 l -o prefijo #.jpg c:\windows\temp\tmp####.emf

There are another nicer posibility, that is use directly DLL from xnview, I try but whitout entire success, mybe I will try again in the future, I sure that another people here like Enrico can help us with this

And the end, you can add a button or menu option in the preview to define the export operation.

regards

Marcelo

PostPosted: Tue May 02, 2006 4:45 pm
by James Bott
Shuming,

One issue to keep in mind is that fax is secure and email isn't.

You can get a PDF print driver that can be controlled by via code so that it doesn't prompt the user for a filename. Some are capable of being password protected. It is also possible to add a digital signature to a PDF.

Another option is to zip the report and password protect the zip file.

I have not done either one of these yet, so I can't offer any specific recommendations.

James

PostPosted: Tue May 02, 2006 6:56 pm
by Richard Chidiak
James Bott wrote:Shuming,

One issue to keep in mind is that fax is secure and email isn't.

You can get a PDF print driver that can be controlled by via code so that it doesn't prompt the user for a filename. Some are capable of being password protected. It is also possible to add a digital signature to a PDF.

Another option is to zip the report and password protect the zip file.

I have not done either one of these yet, so I can't offer any specific recommendations.

James


James

We have purchased a product "imagetopdf" that allows silently to generate a pdf from emf files. This is done without any pdf printer, no installation, Just a file to ship with your app and a set of commands.

The product cost is 250 Us Dollars for unlimited users and i can say it is a great tool.

It took me 5 minutes to get it working. Now my preview generates pdf files and emails them.

It can also code in avery clever way the pdf (no print, signature ...etc)

For those who may be interested check : www.UtilityWarrior.com

Support is excellent.

Richard

PostPosted: Tue May 02, 2006 8:26 pm
by James Bott
Richard,

I note that the website does not mention supporting EMF files, but I suppose that must be a mistake on their part.

Also, it appears that the licensing requires that you purchase one copy (at US$250) for each copy of your application. I know that there are royalty free libraries that you can get to generate PDF's.

James

PostPosted: Tue May 02, 2006 10:11 pm
by modicr
Hello!

http://www.utilitywarrior.com/Image-to- ... ibrary.htm
Pricing:
Per Product $59.99
Unlimited Development $249.99

http://www.utilitywarrior.com/TermsDLL.htm
To keep the pricing structure for Utility Warrior products simple, we have adopted a low cost policy that breaks down the pricing by usage:

Per Product: Each item of software developed (no matter what it's use - personal, used within a company or distributed in any form outside of a company - whether free or charged for) which uses the DLL must have a Product license.

Unlimited Development: Allows an unlimited number of software products (no matter what their use - see above) which use the DLL to be developed.

Importantly, these licenses are ROYALTY FREE - once you have bought the license there are no other costs or payments to make and the DLL can be included with your product.


But, it seems that according to documentation there is no support for EMF files (only bitmap images are supported: "Converts JPEG, JPG, TIFF, TIF, PNG, GIF, BMP, PCX and TGA images"). Probably they haven't updated it yet?

Roman

PostPosted: Tue May 02, 2006 11:20 pm
by James Bott
Roman,

Thanks for pointing out the terms of the DLL. I was apparently looking at the command line (exe) utility.

James

PostPosted: Wed May 03, 2006 5:20 am
by Richard Chidiak
modicr wrote:Hello!

http://www.utilitywarrior.com/Image-to- ... ibrary.htm
Pricing:
Per Product $59.99
Unlimited Development $249.99

http://www.utilitywarrior.com/TermsDLL.htm
To keep the pricing structure for Utility Warrior products simple, we have adopted a low cost policy that breaks down the pricing by usage:

Per Product: Each item of software developed (no matter what it's use - personal, used within a company or distributed in any form outside of a company - whether free or charged for) which uses the DLL must have a Product license.

Unlimited Development: Allows an unlimited number of software products (no matter what their use - see above) which use the DLL to be developed.

Importantly, these licenses are ROYALTY FREE - once you have bought the license there are no other costs or payments to make and the DLL can be included with your product.


But, it seems that according to documentation there is no support for EMF files (only bitmap images are supported: "Converts JPEG, JPG, TIFF, TIF, PNG, GIF, BMP, PCX and TGA images"). Probably they haven't updated it yet?

Roman


Roman

Initially they did not have support for EMF

When i purchased the product, i asked them to add the support for EMF (it was a condition) and they did it in 2 days. So now they have the support for EMF (My app uses it) but they have not yet updated the web page.

I prefer the command line utility over the dll (i tested both), command line utility is much easier to use with fwh and xharbour. It takes 5 minutes to make it work.

Richard :D

PostPosted: Wed May 03, 2006 5:21 am
by Richard Chidiak
James Bott wrote:Roman,

Thanks for pointing out the terms of the DLL. I was apparently looking at the command line (exe) utility.

James


James

The same licensing applies to Command line utility

Richard

PostPosted: Wed May 03, 2006 4:39 pm
by James Bott
Richard,

The same licensing applies to the command line utility.


Well perhaps it does, but here is what their website says:

Per Workstation: For use by a single user on a single PC.

Per Server: For use by multiple users on a single PC, whether through a client/server structure or through the use of resource shares within a LAN environment.

Unlimited/Internet: For use by multiple users on multiple PCs within a LAN/WAN environment or by users over the Internet.


It sounds like you need one license for each LAN/WAN.

James