Solved

Free JPEG control ?

Posted on 1998-08-16
6
263 Views
Last Modified: 2010-04-30
Is there any free or inexpensive(< ~$50) 32-bit custom control that can ;
1) View JPEG files;
2) print JPEG files in printer object;
3) (optional) provide thumbnail control;
4) (optional) support TWAIN interface.
In fact, the "Imaging for Windows" do all the things I want. Only that it doesn't support some JPEG format, e.g., files from Sony Mavica digital camera (see more at http://www.eastmansoftware.com/products/ImagingPro/Reading_Room/format.htm).

Thanks,
Henry
0
Comment
Question by:HenryChan
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Answers2000
ID: 1429111
The Internet Explorer Browser control can do 1 and 2 with no problems and is free.  No thumbnails or twain though, but you said they were optional.
0
 

Author Comment

by:HenryChan
ID: 1429112
Answers2000,

  Are you talking about the library SHDOCVW.DLL? If so, can you give me some source of information on handling it. I can't found any help file associate with it.

Thanks,

Henry
0
 

Author Comment

by:HenryChan
ID: 1429113
Answers2000,

Please give me some comment as soon as possible, or I'll reopen it.

Thanks

Henry
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Accepted Solution

by:
Answers2000 earned 60 total points
ID: 1429114
yes.  

The doc's are in Microsoft Internet platform SDK.  All the sample calls referrer to IWebBrowser:: (this might show up in your help) and use C++ style conventions (you should be able to figure out the parameter types in VB, by typing the function control name, the ".", and the function name from C++ (minus IWebBrowser::)

To view a file, use code like:

Private Sub Command1_Click()
  WebBrowser1.Navigate "f:\loop1.jpg"
End Sub

The rest of the answer is coming (printing and some other methods, sorry no TWAIN or thumbnails)



To get you started, I did this
1. Create a form
2. Insert SHDOCVW.DLL as if an OCX on to my form (I had to right click on the component bar, and check "Microsoft Internet Controls" to get in the component bar).
3.

0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1429115
Some other example calls (name should be obvious, same as IE functions)
  WebBrowser1.GoBack
  WebBrowser1.GoForward
  WebBrowser1.GoHome
  WebBrowser1.Refresh

Print:
  WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER

Is that enough to get you started ?


0
 

Expert Comment

by:xchaix
ID: 3375430
use wang inside you windows directory..

c:\windows\wangsamp\

it was an vb sample or imaging.. view,scan etc.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now