FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour a small utility
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
a small utility
Posted: Wed Aug 02, 2017 04:02 PM
Friends ,

I made an utility to save documents ( pdf,Office,openofice,Image,ecc) linked on a record for a sample I have a customer archive and each customer can have some documents linked .

then on my edit dialog of customer I made a buttons where I insert as prompt " 13 documents" and pressing this button it open this dialog




On this dialog you can see different sections :

each document can be drag and drop into or load from menuitem is on buttonbar on bottom or impoted from memory ( clipboard)
each document can be open by a popmenu and the procedure see on your computer wich applications is installed for a sample for the images -> infarview,office 2010, paint,.



..or your default application selected as you make every day on window system



the procedure check if there is a twain peripheral installed on your computer and you can scan the document ( it run also with webcam) and you have 3 levels ( 150 dpi with gray scale,150 dpi with color, avanzate scan and set if save as pdf or image



you can erase or renamed a file saved

you can show the document as big , small icons and list file as you can see here



if a document is an image you can show it and use the zoom



and print it on rpreview - you must set the sizes of image to print before to print




and the print the image





the question

Now I wish print each type of the document directly

How I can make it?

sample : if you select a doc file you can print the document directly without open the office installed

Someone have a solution ?


the question 2

wich utility I can add on this utility ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: a small utility
Posted: Wed Aug 02, 2017 07:20 PM

Is that your home ? It looks like a very warm and comfortable room.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: a small utility
Posted: Wed Aug 02, 2017 11:02 PM

No sorry...perhaps is yours ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: a small utility
Posted: Thu Aug 03, 2017 07:29 AM

Silvio,

for printing, did you try shellexecute?
Shellexecute(nil, "print", cFile)

With cFile as the path and file to your document.

But I guess it would open the associated program for printing.

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de

Continue the discussion