a small utility

a small utility

Postby Silvio.Falconi » Wed Aug 02, 2017 4: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

Image


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,.

Image

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

Image

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

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

Image

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

Image

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

Image


and the print the image

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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7088
Joined: Thu Oct 18, 2012 7:17 pm

Re: a small utility

Postby TimStone » Wed Aug 02, 2017 7: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
User avatar
TimStone
 
Posts: 2947
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: a small utility

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7088
Joined: Thu Oct 18, 2012 7:17 pm

Re: a small utility

Postby gkuhnert » Thu Aug 03, 2017 7: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests