Solved

Free JPEG control ?

Posted on 1998-08-16
6
262 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

10 Experts available now in Live!

Get 1:1 Help Now