|
-
Sep 24th, 2002, 03:04 PM
#1
Thread Starter
New Member
Printing in VB
Hi
I am writing a routine which lists through a text file and searches the directories on a PC the files. These files are .TIFF files and i want to print them. Whats the best way to do this, we use MS photoeditor to view them, can i call Photoeditor or can i print direct from VB?
Any help very, very welcome
Kevin
-
Sep 24th, 2002, 04:12 PM
#2
Lively Member
You could use a picturebox to load the tiff and then use the picturebox.print command
"Help!!! I've installed Windows CE,ME and NT and now my computer runs like a brick" - shamelessly stolen sig
-
Sep 24th, 2002, 04:15 PM
#3
Um... the Picturebox.Print doesn't print to the printer ..... it prints to the picturebox.... in other words if I put a pic box on a form then do PictureBox1.Print "Hello There!"... then the text, Hello There! shows up in the pic box... same as Form1.Print works....
IF the TIFF extention is associated with a particular program, what you could do is a ShellExecute. Then hit the Print. It requires User intervention though.
Anybody else???
-
Sep 24th, 2002, 04:37 PM
#4
Thread Starter
New Member
..
Ideally i would prefer no user intervention at all....
-
Sep 24th, 2002, 04:51 PM
#5
PowerPoster
"... the Picturebox.Print doesn't print to the printer ..."
Of course not. You will have "send" it to the Printer object. It may look something like the following:
VB Code:
Printer.PaintPicture Picture1.Picture, Printer.ScaleLeft, Printer.ScaleTop + 100 ', Printer.ScaleTop 'Printer.CurrentY
-
Sep 24th, 2002, 05:03 PM
#6
-= B u g S l a y e r =-
in u'r component list there is a component called Kodak Image Edit Control.
alot of filetypes are supported :
try loading and printing it using this control.
-
Sep 24th, 2002, 09:39 PM
#7
PowerPoster
I can be wrong but as far as I know Kodak Image Edit Control is not redistributable. You may need to obtain a special license for it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|