Solved

Free JPEG control ?

Posted on 1998-08-16
6
264 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

832 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