FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ways to save report to a file and easily open
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
ways to save report to a file and easily open
Posted: Sat Apr 29, 2006 02: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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 140
Joined: Sat Oct 08, 2005 05:16 PM
ways to save report to a file and easily open
Posted: Sat Apr 29, 2006 05: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

Rubén D. Fernández

Maldonado-Uruguay
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
ways to save report to a file and easily open
Posted: 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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
ways to save report to a file and easily open
Posted: 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

Posts: 140
Joined: Sat Oct 08, 2005 05:16 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 01:52 PM

Shuming:

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

Sorry for my English.

Regards.
Ruben Fernandez.

Rubén D. Fernández

Maldonado-Uruguay
Posts: 140
Joined: Sat Oct 08, 2005 05:16 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 01:53 PM

Marcelo:

How can I do that?

Thank tou.

Ruben Fernandez

Rubén D. Fernández

Maldonado-Uruguay
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 03: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 04: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 06: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ways to save report to a file and easily open
Posted: Tue May 02, 2006 08: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
ways to save report to a file and easily open
Posted: 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!
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ways to save report to a file and easily open
Posted: 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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ways to save report to a file and easily open
Posted: Wed May 03, 2006 05: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 :-)
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
ways to save report to a file and easily open
Posted: Wed May 03, 2006 05: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ways to save report to a file and easily open
Posted: Wed May 03, 2006 04: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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10