Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print Pictures?
Message
From
26/11/2004 11:48:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/11/2004 11:20:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00964950
Message ID:
00964965
Views:
8
This message has been marked as the solution to the initial question of the thread.
>I have a table containing details about items and filename of its picture in a table, e.g.
>
>
>Item       Filename
>PC         C:\Cat\PC.jpg
>Disk       C:\Cat\Disk.jpg
>Printer    C:\Cat\Printer.jpg
>
>The user will select the records from this table and I have a subset of the above table in another table (ToPrint.dbf)
>
>I want to print these pictures using FoxPro report (or any other way). Any suggestions how should I proceed?
>Thanks.
>
>- Ravi
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'Print','blah blah.jpg','','',1)
Should do it (didn't try).
Way 2:
Create an htm file with references to files in it. Browser has print button.
Way 3:
Create a VFP report with an OLEBOUNDControl in it. Set expression to:
(FileName)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform