API to generate pdf/cad preview?

D

Dymondjack

Hello and thanks in advance.

I'm starting a fresh application to handle manufactured parts and
components, and have just had this great idea for a main parts form, but
really have no idea how to go about it.

I'm wondering if it would somehow be possible to make an API call to
generate a preview of a cad or pdf (or any other 'visual' file) to display if
the file is highlighted out of a list box or the like.

Any suggestions appreciated
 
B

BeWyched

Hi

You could use the Shell function, e.g for a pdf:

pthPDF = "path to pdf reader file, e.g. Adobe"
pthImage = "Path to image file collected from your list box"

retVal = Shell("""" & pthPDF & """" & " " & """" & pthImage & """")

Cheers

BW
 
D

Douglas J. Steele

There's really no need to shell just to open a file as long as the extension
is registered.

pthImage = "Path to image file collected from your list box"

Application.FollowHyperlink pthImage

or, perhaps

Application.FollowHyperlink Chr$(34) & pthImage & Chr$(34)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top