Solved

Free JPEG control ?

Posted on 1998-08-16
6
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

726 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