By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,852 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,852 IT Pros & Developers. It's quick & easy.

Print contents of a frame control in vb 6.0?

P: 228
I was asked by my department to print contents of a frame control. The program was designed by another person and now, i am asked to add this specific task. I dont have proper documentation of the program but i do have the code. Now, i want to include a button and be able to print the contents of a frame control he placed?

Any ideas would be appreciated highly.
Jul 16 '09 #1
Share this Question
Share on Google+
6 Replies

P: 236
If you can post the zip file of the code then it will be ok otherwise tell waht are the controls in Frame Control which you want to be printed. Also in which format.
Jul 17 '09 #2

P: 236
I think you must use DataReport for this job.
Jul 17 '09 #3

P: 228
I want to print to a paper, if thats wat u mean by the format thing. the controls inside it are label,textbox,combobox and one image box. btw, i was thinking if the job could be simplified by using a picture box instead of a frame control? i already tried that and there was no print output at all.
Jul 17 '09 #4

P: 236
Dear Sam

Use DataReport for this job or u may use Crystal Report also.
Jul 18 '09 #5

P: 180
use following logic

private sub cmdPrint_Click()
with frame1
.Top = me.scaletop
.left = me.scaleleft
.borderstyel = 0
.backcolor = vbwhite
'for all text boxes
textbox1.borderstyle =0
'back style of all lable controls must be set to zero
.zorder vbbringtofront
end with
end sub

manpreet singh dhillon hoshiarpur
Aug 22 '09 #6

P: 236
If add following 2 lines before Me.PrintForm then only the frame contents will be printed otherwise other things also will be printed.

Expand|Select|Wrap|Line Numbers
  1. Me.Width = Me.Frame1.Width
  2. Me.Height = Me.Frame1.Height
Aug 24 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.