473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Print contents of a frame control in vb 6.0?

228 100+
Hi,
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
6 8684
smartchap
236 100+
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
smartchap
236 100+
I think you must use DataReport for this job.
Jul 17 '09 #3
samvb
228 100+
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
smartchap
236 100+
Dear Sam

Use DataReport for this job or u may use Crystal Report also.
Jul 18 '09 #5
9815402440
180 100+
hi
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
textbox1.appearance=0
'back style of all lable controls must be set to zero
.zorder vbbringtofront
end with
me.printform
end sub

regards
manpreet singh dhillon hoshiarpur
Aug 22 '09 #6
smartchap
236 100+
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
  3.  
Aug 24 '09 #7

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

Similar topics

1
by: Bart Plessers \(artabel\) | last post by:
Hello, Currently developping a site, where I use some session variables. The site is located at my home computer. Because I have a dynamic IP adress, I use no-ip (www.no-ip.org) to have my...
3
by: Marcus Bjorke | last post by:
I use a print link that causes a problem with Opera 7. The link looks like this <a href="javascript:parent.frames.mainFrame.print()">Print this page</a> I also used <a...
4
by: Scott Navarre | last post by:
Hello, I have 2 frames. The top one is the control frame and the bottom one is the display. I have a roll-over button in the top frame that I want to use to do a print() for the bottom frame....
0
by: crownergis | last post by:
Hello. I'm Johnny Cash. Actually I have a bit of a problem. I have a page with an inline frame. The contents of the frame are wider than the frame (and designed that way). The newest content in...
1
by: Alec | last post by:
Hi All, I am currently using an unbound OLE object to display images stored in a folder. I want to be able to print these images from their normal format (it just happens that these are A4...
4
by: Lucas Correa | last post by:
Hi, I am trying to customize printing for a webpage, setting the top and left margin, and cleaning the header and footer. The idea is to customize printer without user interaction, and don't...
2
by: Jay | last post by:
I have an application that uses the DataGrid to list several employees. You click on a button associated with an employee to display a report on one employee in a popup window. From that report you...
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.