ways to save report to a file and easily open

ways to save report to a file and easily open

Postby ShumingWang » Sat Apr 29, 2006 2:01 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby RuFer » Sat Apr 29, 2006 5:07 am

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
User avatar
RuFer
 
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Postby ShumingWang » Tue May 02, 2006 11:25 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Marcelo Via Giglio » Tue May 02, 2006 12:01 pm

Hello,

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

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Postby RuFer » Tue May 02, 2006 1:52 pm

Shuming:

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

Sorry for my English.

Regards.
Ruben Fernandez.
User avatar
RuFer
 
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Postby RuFer » Tue May 02, 2006 1:53 pm

Marcelo:

How can I do that?

Thank tou.

Ruben Fernandez
User avatar
RuFer
 
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Postby Marcelo Via Giglio » Tue May 02, 2006 3:11 pm

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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Postby James Bott » Tue May 02, 2006 4:45 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Richard Chidiak » Tue May 02, 2006 6:56 pm

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
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby James Bott » Tue May 02, 2006 8:26 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby modicr » Tue May 02, 2006 10:11 pm

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
© I'm not patented!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Postby James Bott » Tue May 02, 2006 11:20 pm

Roman,

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Richard Chidiak » Wed May 03, 2006 5:20 am

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
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Richard Chidiak » Wed May 03, 2006 5:21 am

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
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby James Bott » Wed May 03, 2006 4:39 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 48 guests