Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Printing Frame Image


i want to print an image of my frame. how would i go about this.

urgent help required.

thanks in advance

i have tried printer.print frame1




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Printing A Frame
I have figured how to print all the contents of a form.
frmIndex.print

Buti want to just print the conjtents from a frame.
Any ideas?

By print i mean physically print out of the printer not be displayed on the screen.

Printing Everything In A Frame
Well, to put it simply, I want to have the user click a button and have it print everything that's inside Frame1.

Now, I was experimenting with Printer.print, but I couldn't find a way to print everything in the frame. In the frame, I have labels, lines, and pictureboxes.

Any help? Thanks.

Printing Frame
Hello
How can i establish (add) a Frame for my printing paper?
thanks alot for advice




Egyptian Man

Printing A Frame
Hi,

I am using the following code snippet to print the contents of a frame

Picture1.AutoRedraw = True
Picture1.Picture = LoadPicture 'Clear Picture1
rv = SendMessage(framPhoneInfo.hwnd, WM_PAINT, Picture1.hDC, 0)
rv = SendMessage(framPhoneInfo.hwnd, WM_PRINT, Picture1.hDC, PRF_CHILDREN + PRF_CLIENT + PRF_OWNED)
Picture1.Picture = Picture1.Image
Picture1.AutoRedraw = False
Printer.PaintPicture Picture1.Picture, 0, 0
Printer.EndDoc

I am using this method so that the whole frame is printed even though only a part of it displayed.

The problem is that a border appears for the frame on the paper printout. The border style for the frame is set to 0(None)

Can someone suggest how to avoid this border

Rajeev

Loading Image In Frame
The following code create a series of Frames and also images. I tried using the following code, but the images is created behind the frames. How can i create the image inside the frame ??


Code:
X = 1
leftx = 360
topx = 480
lefty = 480
topy = 720
For i = 1 To 4
For j = 1 To 5
Load Frame2(X)
Frame2(X).Visible = True
Frame2(X).Height = 975
Frame2(X).Left = leftx
leftx = leftx + 1080
Frame2(X).Top = topx
Frame2(X).Width = 855
Frame2(X).Caption = X + 100

Load Image1(X)
Image1(X).Visible = True
Image1(X).Height = 630
Image1(X).Left = lefty
lefty = lefty + 1080
Image1(X).Top = topy
Image1(X).Width = 615
Image1(X).Picture = LoadPicture("c:
oom_layout_2_small4.bmp")
X = X + 1
Next
leftx = 360
lefty = 480
topx = topx + 1320
topy = topy + 1320
Next

Drag Image In New Frame
Hi,

I'm making an ActiveX control it consists of 3 frames. I want to pick an image from a frame called FrameComponentPalette and place it (by dragging) in another frame called FrameWorkingArea. I tried it a lot of ways, but mostly my image flips back to it's original location while I release my mouse. Who can tell my how I can perform this image dragging?

Roderik

Less Memory: Picturebox Or Image In Frame ?
I need to put a static bitmap picture on my main form and
all I care in my application is lower consumption of resources.
It can't be placed in an Image control as the form is skinned and being a windowless control it disappears under the skin.

I have two options :
1.Placing the bitmap in a Picture box.
2.Placing it in an Image control which, itself, is placed on a frame control.

Which consumes less memory ?

Thanks

Transparent And Background Image For Frame
Hello everybody,
I have some small doubts regarding design in Vb.Please help.

1) How to make transparent screens in VB?
2) How to load a background image for a Frame?

Regards,
Bharath.

Problems Printing Controls In A Frame
When you send a label's caption to the printer using the Printer.Print method, but the label caption runs to multiple lines, how do you get the printer to wrap the text? I'm using to code below to print the labels on my form, which works great, but the labels that do not fit on a single line get hosed up.

I saw in another post that someone called karimahta wrote a word wrap function, but I can't find it. Please help if you can.

Private Sub cmdPrint_Click()
Dim ctl As Control
Printer.ScaleMode = Me.ScaleMode
For Each ctl In frmCoverSheet
If TypeOf ctl Is Label Then
Printer.CurrentX = ctl.Left
Printer.CurrentY = ctl.Top + ctl.Height
Printer.font.Name = ctl.font.Name
Printer.font.Size = ctl.font.Size
If ctl.font.Bold = True Then
Printer.font.Bold = True
Else
Printer.font.Bold = False
End If
If ctl.font.Italic = True Then
Printer.font.Italic = True
Else
Printer.font.Italic = False
End If
If ctl.font.Underline = True Then
Printer.font.Underline = True
Else
Printer.font.Underline = False
End If
Printer.Print ctl.Caption
End If
Next ctl
Printer.EndDoc
End Sub

Populate An Unbound Image Frame From An Access Table
Hi, I posted this question in the Access Reports forum and while an alternative solution was posted, I am still curious as to if this can be done.

I have an Ole field in an Access table with one bitmap embedded.  What I would like to do is to be able to read the contents of the table field into an unbound image control on a report.

This is more of a curiosity of mine than anything else. Bound forms, subreports all work and I use them but I would like to know if this is possible and how one would do it.  If not, no big deal either.  I would just like to know.

Thanks,  dRahme

Printing The Contents Of A Frame Only - Including All Labels Within It - Some1 Help??
Hey all

I wish to place several labels within a frame, and then at runtime, when the user clicks a command button (called print or whatever), vb will only print the contents of that frame and its labels.

i know how to print a picture, ie:

printer.paintpicture image1.picture

but how do i print the frame example??

thanks all

Drag And Drop "image" From Frame To Main Form
ok so HOW would I drag and drop an "image" control from frame to main form while running the program???

Thanks

messup000

Resolved: Opening An .exe In A Control Such As The Image Or Frame Control
Hello everyone,

It's not a critical problem by far However, I was just wondering if there was an easy way or even a way to open an exe program in a frame, Image, or any other control. I know the easy way to open an exe is the shell command.


If there is a way second part could you run like program switches with the shell or a different way. /s /f /d


Thanks in advance

I appreciate any information.

Dan Schuessler

Attaching A Pre-drawn Control (e.g Frame, Button) To A Frame/sstab/whatever
A simple question from someone very new to VB:

I want to be able to attach, for example, a frame (and lots of controls that are attached to it) that I have drawn onto another frame or an sstab. Obviously I could draw a new button directly onto the frame but this is impractical if there are several buttons/controls set up with actions etc. I am sure many will have come accross this kind of thing before, so somone is bound to know the/an answer.

Thanks,

Rob

Printing Image
Hey Guys, i am using the following code to load a JPG picture in to an image control (witht eh stretch option set to true)


Code:
Set Image2.Picture = LoadPicture(File_Name)

Then i try to print this image with the following line of code which prints to an 8.5 * 11 page (12240 * 15840 in twips). I set the coordinates explicitly becasue the image resolution varies, and unless its set explicitly it will print only a piece of teh image that fits on the paper.


Code:
Printer.PaintPicture Image2.Picture, 10, 10, 12240, 15840


PROBLEM: It takes a very long time to print it. the spooling process takes forever. To print a jpg picture that is less than 1 mb in size, it takes about 50 mb to spool. Any ideas how to speed up the printing process ??? ( i printed the same image with the windows image viewer, and it printed it a whole lot faster) thanx in advance

Printing An Image?
Hey, I was wondering how I would print an image. I've tried...

Printer.Print imgTodTitle.Picture...

But it doesn't work :S

Help With Printing To An Image Box
Can somebody help? I have 3 option boxes, when i choose one, a picture has to show in an image box. The code that I'm writing is:

If option1.value = True Then
Image1.Picture = loadpicture ("c:windowsdesktopstatue.jpg")
End If

This isn't bringing up my file. It says it can't find it. Please let me know what I'm doing wrong.

Thank you in advance for your help.

Craig

Printing Image
Can anybody tell me the code to print .gif images?
There is no way I can print out .pdf files from VB program, is there?

Printing An Image
Hey Guys,

I have this Template kind of thing as an image.
I want to combine this image with text generated by my VB program and print it.

i've uploaded a sample picture of how i want it.



The text in the Courier font should be where i want the Generated Text to appear.

Can anyone show me some pointers.

Cheers
Deane.

Printing An Image
Hi, I am wondering can i Print an image from VB. If can, how am i going to do about it? Stated below is what I need to do...
I have scan a receipt (an image), and i insert the image that I just scaned into My VB Project (I have some problem here as well : I couldn't see the full image of the image that i've scaned, The size of the image is 4370 * 2275 pixels]. it is too big to be fitted into the screen.) , then I will fill in the receipt using VB program and print it with the size same as my image.

My question is, how am i going to place the image into my vb program (with the whole image can be showed)? and how do I print it out with the size of 4370 * 2275 pixels? Is that anyway I can set the printing size?

Printing Image
i have an instant messanger that i am making using vb 6 and i have a picturebox where u can draw images with your mouse so others can see it while u are chatting. i am trying to make it so you can print that picture that is drawn.
its name is picdraw

i have tried printer.print picdraw.image doesn't work
i have tried printer.print picdraw doesn't work
i have tried printer.print picdraw.picture and that doesn't work

anyone have any ideas

Printing An Image? Please Help?
I have tried so many times to print an image off an image control but it will only come out as an A5 sheet. can anyone help me with some tips.

Printing An Image?
I have a picture box in a form and i need to know how to print it on an A4 size paper. please help me i need that code?

Printing An Image? Help
could someone please tell me how to print an A4 image off a form as simple as possible.

Need Help W/ Printing Image
Well, I am using an Image control with the Stretch property set to True, so that when a user loads an image file, it automatically sizes it to be 305 pixels wide and 210 pixels high. This works fine, but when I print it out onto paper, it doesn't print what's visible in the Image control, it prints the actual picture at whatever size it originally was.

I need it to print the sized picture, not what it originally was.

This is the code I'm currently using to print it:



VB Code:
Private Sub PrintRoutine2(objPrint As Object)   objPrint.PaintPicture frmImage.Image1, 4.5, 1.8End Sub



What need to be done to make the computer print the 305x210 pixel resized image, and not the image at it's original proportions?

Thanks in advance.

Help W/ Printing Image
Well, I am using an Image control with the Stretch property set to True, so that when a user loads an image file, it automatically sizes it to be 305 pixels wide and 210 pixels high. This works fine, but when I print it out onto paper, it doesn't print what's visible in the Image control, it prints the actual picture.

I need it to print the sized picture, not what it originally was.

This is the code I'm currently using to print it:

VB Code:
Private Sub PrintRoutine2(objPrint As Object)   objPrint.PaintPicture frmImage.Image1, 4.5, 1.8End Sub


What need to be done to make the computer print the 305x210 pixel resized image, and not the image at it's original proportions?

Thanks in advance.

Printing An Image
I'm currently working on a project that requires something of a letterhead to be printed above some text. I use a RichText control for the text, and basic Printer.Print and Printer.EndDoc (with a little more complicated alignment etc.. code). What i want to know, is how might one use simple code such as Printer.print to add an image to the printjob (i've figored out how to use a certain image object, but it automatically ends the document after the image, so it's no use to me.) I need some way to add an image to a printjob, but not have it end the document, so that i can also add text to the printjob. Thank you very much!

Image Printing
How do i print an image from an image box.

Thanks in advance

Mark_Dep

Printing An Image
Just using the basic printer functionality in VB6 "printer.print", is there an easy way to print an image from a file or from a picture/image box.

Cheers

John

Printing An Image From Iis App
I have an IIS application that recognizes an IP address, then based on that address, prints an invoice to the desired printer. When run in debug mode everything prints out as planned, however when accessed on the server through the internet everything BUT the image prints. Here is the code as is now. Any ideas, please help. Perhaps a permissions problem??

Dim X As New StdPicture

Set X = LoadPicture(strAppPath & "imagesX.gif")

Printer.PaintPicture X, 0.75, 0.5, 2.35, 0.75, , , , , vbSrcCopy

Image Printing
Hello, How do I load a image file like .bmp,.tiff and print it through printer ?

thanks

Printing An Image From IIS App
I have an IIS application that recognizes an IP address, then based on that address, prints an invoice to the desired printer. When run in debug mode everything prints out as planned, however when accessed on the server through the internet everything BUT the image prints. Here is the code as is now. Any ideas, please help. Perhaps a permissions problem??

Dim X As New StdPicture

Set X = LoadPicture(strAppPath & "imagesX.gif")

Printer.PaintPicture X, 0.75, 0.5, 2.35, 0.75, , , , , vbSrcCopy

Rory

Image Printing (Again)
I'm really stuck with this one... I need to be able to print (and preferebly view) raster images other than bitmaps (.tif, .jpg, .gif, etc...). I'm open to using a thrid party utility if it comes to that, and at this point I think I will have to.

Can anyone recommend a utility for printing images, I was looking at Lead Tools developer package for about $500, however it offers much more imaging functionality than I need.

Thanks.

Image Printing
I'm interested in printing multiple image formats such as .tif, .jpeg, .bmp, etc... I have not been able to find any info on doing this from VB. The printer object can only handle a few of the standard image formats, are there any api's that I might be able to use? What about a low-cost (or free) ocx that I can use? I don't need to view, just print.

Thanks in adavance.

Image Printing
how to print out a 24-bit or 32-bit image (in a picturebox) on a computer with only 8-bit or 16-bit (screen)colors selected?

it must work with CreateCompatibleDC (or something like that), but how?

regards
Leff

Printing A Bit Blt Image
this might be an easy question. I've taken a portion of Form1 and made it into a picture in picturebox1, using bit blt, a declaration in windows API. I need to print this bitblt picture. When you press command1, the printer window has to pop-up, where the user can select the quality etc.. of the image that you want to print. Then i need to make picture1 print with the options he has selected in the printer window. I would need code examples.
Thanks alot, in advance!!!

How Can I Put The Frame Caption To Middle, Not The Normal Left Of The Frame?
I want to know how I can put the frame caption to middle, not the normal left of the frame.

Thank you!

Best Regards,

Kevin Shen

Printing Image With Swiftprint.ocx
Sorry if this don't fit here. I was in doubt where to open it. I need to print a technical sheet with a bar code in it. I use a SwiftPrint.ocx for managing printing output. I have been already sucessful in printing an image from a saved file.
The following method:
spDoc.LoadImage wFile(String), wId(Long)
loads an image file from wFile and place a reference to it in wId, where it can be employed.
Point is, I don't have the picture in a file this time, but instead stored in an Image object on a form. Does anyone know how can I get such Id for this object? Or know SwiftPrint enough to know if there are another method of printing this out? I can't find none else. Thanks in advance...

Printing Text Over Image
Hey all!

I'm trying to make a program, which prints your name and the date on a custom-created certificate. I've been researching different ways of printing and now I want to make it a little more efficient (for purposes of easier customization later on down the line). Right now, I'm using the Printer object and telling it to create the page and define it in twips.

The issue is that I have an image in the back and text on top. Because this is a certificate, I cannot use the Me.PrintForm object, because that only prints portrait. I need landscape.

I have 2 labels on it. When I tell one label to print, I would have (for example)


Code:
printer.currentX = label1.top + 1485
printer.currentY = label1.left + 1279

That wouldn't be so bad if I didn't have to use COMPELTELY different numbers for label 2!


Code:
printer.currentX = label2.top + 18965
printer.currentY = label2.left + 987.25

Is there an easier way (maybe some sort of calculation) to make this much more efficient. If I change the look of the certificate, I would hate to be limited to keep the input lines in the same exact place. Tastes change over time.

Thank you in advance!

~Derek

Printing Form Image
For some reason wheneve I try to print the form image, command buttons, timers, and other controls appear black. This happened on multiple computers on two different versions of windows (98/xp). The only thing the both had in common wre that they were running vb6, and I had Installed Mz-tools 3.0.1100 on both. I already reported this as a bug, but I wanted to know if anybody else had encountered this problem, and if so, how I could either fix it, or whether or not there was another cause.

Image Box Printing Thanks Jtballer4
Hello, This is probably really easy to sort out but it is causing a few problems for me. How do I print the Picture property of an Image Box, when I try to print the picture, all I get is a four figure number printing out instead of the picture.

Printing Image Files In VB
Is there any way to print image files such as .tif jpeg,etc as part of a VB report (using the Print object or the report designer)?

Thanks in Advance

Stacey

Help Image/Picture Printing
hi im new here i wish that anyone could help me... i have a problem in printing image/picture in crystal report or in data report for vb i dont know if i have the right codes or its just does not work, and also i have made a table and insert an image thru design time in ACCESS but i CANT make an INSERT of IMAGE/PICTURE thru run time in vb...

...and also i have made a table in sql server but i cant insert an IMAGE/PICTURE in it and make it show in crystal report or data report in vb.


thanks!

Printing Labels On An Image
How might i get to print an image, and including the labels i have on it?

Printing From Image Lists
I'm tring to print from an imagelist control using it's draw method. When I output to a picture box it's fine but when I put it on the printer it comes out about a third of the size it's supposed to be as the top left corner of the page. I'm using the printers height and width properties to centre it in the page and get other positions right and the printer image is made up of lot's of smaller images pasted on top of each other so I'm sure it's not the images themselves that are too small. I can't seem to work out what's going wrong and I've got no Idea how to fix it.

Any Clues?

Printing A Tiff Image
I have some tiff images that I need to print on a local PC. Is there any easy way to send those to the spool and print them?

Thanks

Printing Image From Picturebox
Does anyone know how to send the image in a picture box to the printer? I know about the PrintForm command, but it prints the entire form, and I need to print just the picturebox contents.

Can it be done?

joe

Problem While Printing Image
Hi All,

I am using vb6.0, crystal report 8.5, Access98 in my application. whileprinting the report, (my report contains some text and 1 images). At thepoint of printing the image, the printer get stuck. I am lossing thereport. But, it occurs after 4 or 7 prints continuosly.

Any body can help to solve this problem.

I need it very urgent, b'cos my application is running in client side.This is problem reported by them. I have limited time to solve thisproblem. I didn't know where the problem is wheather from system or myapplication

I am expecting a postive reply from the group

Greetings
Srini

Printing A Background Image
This is for a mail merge type application.  The customer wants to print a full page background image on the paper and print the variable text over the top. I understand (from tek-tips!) that you can do this with pcl printers, and I'm pretty sure you can with postscript too. Having looked at some pcl stuff it is far more complex than I want to do.
Has anyone done this simply from VB? or do you know of any software that I can use from VB at a reasonable cost to help with this?

http://www.accuflight.com
http://www.lettersdirect.co.uk
http://www.ourhouseinportugal.co.uk/



Copyright © 2005-08 www.BigResource.com, All rights reserved