code for print current record which show on vb form to printer

hello,

how are you great vb master

thanks for textbox like list its work

here is new one

i told u that i am new in vb

i learn vb 6 by myself without any teaching class or any college

here i made a form like salebill for Pharmacy

 this form have

bill no:-  , Patient Name:- , Doctor Name :-, Date:- , these are textbox and labels

i also use MshFlexgrid for many items which purchse patient

may be u understand what type of sale bill is this

now i save this data to database and this record is show on display on form

i want this current record to print

how can i ?

i use ADO connection  SQL 7 as Database

Please let me know code for print

i didn't write any code for it ,,, i don't know how to write

 

thanking you great vb master

 

jayesh patel

Have u ever tried using Data Report or third Party Reports like Crystal Reports?

 

Give me your email and ill do a samples for you in printing Reports

hi vb master

i did not try crysta report, i do't know how to use it and wher i found it in vb

here is my email id [email protected]

thanks for your kind attention to me

it's a third party software for creating a professonal reports , u can download the software in the net..but you can also the Data Report in embeded in vb6 IDE..

 

ill send you a samples using DATA Report and Crystal report X

 

Goodluck

im using vb 6 and datareport. sir i want to print images retrieve from the database. how can i pass the parameter of the image. can u help me? sample codes thanks...

In reply to by emond

sir i want to print one form i try but always fail because in printform it's print only thats on screen like printscreen so sir help me to print form my email id is [email protected]

hi please hel me again i want to know code for stop ejecting paper after peinting is completed i txt file to see print out with edit.com what is the meaning chr (27) + chr (64) how can i use this chr code thanking you

I think there's an option in your printer settings to prevent your paper from ejecting print is finished. This is something like "Keep printed documents". chr (27) is equivalent to space chr (64) is equivalent to @ I think you can use this code to send it to your printer by using sendkeys function in vb to escape printer.

how can i automaticaly send the crystol report to printer? anybody can send the cording to mail address please...? my mail address is : [email protected]

In reply to by Anonymous (not verified)

Crystal reports is a reporting tool and that is the job of this software.

can u help how make a education 4d or 3d games. i hope u can help me

hmm.. im jhEm.. i just wanna ask, whats the code for me to be able to open the report i made in the database??

hello every one. I'd created on application in vb6.0 with datareprot. I'd have to done design my biill in datareport but it create problem. it's like I'm retrieving all data from database. there is name ,address, Teleno in group header. while all the product where it will be 5 or 10 it'll goes to detail. but the problem is if there is one product in detail view it will print half paper of the A4 size. and if there is 5 to 6 records then it'll print full of paper. so i want if there is 1 records or 6 records it should be print full paper. so how can i do this please help me any one it's very urgent. post on my email [email protected] please tanks in advanced

DEAR SIR/MADAY I M USING VB 6.0 I MAKE ONE PROJECT BUT I HAVE SOME PROBLUM RELATER TO MY PROJECCT LIKE I WANT SEE THE CRUNT RECORD IN THE TEXT BOX ON THE DATA REPORT BUT ALWAYS OLD RECORD SHOW ON THE DATA REPORT PLIZ HELP ME IF U CAN DO IT MY PROJECT CONECTIVITE IS SIMPLE ONLY ACCESS DATA BASE PLIZ PLIZ HELP ME [email protected]

Sir, I used the command below to send Form8 to Printer in vb6, but I don't Know how to do that to vb.net form. Please help me! Form8.PrintForm Printer.EndDoc

Put a PrintForm on your form and a Button On the button type this : PrintForm8.Print and of course you must have a primary printer installed on your pc. Regards >>> cidfrey here

private Sub Command1_Click() DataReport1.Show End Sub private Sub Command2_Click() Dim pPic as RptImage set pPic = DataReport1.Sections("Section4").Controls("Image1") 'set pPic.Picture = LoadPicture() ' to clear the image ' or 'set pPic.Picture = me.Image1.Picture ' set to some other image on some other form ' or set pPic.Picture = LoadPicture("c:\pc2020\source\res\pictures\Rainfall.bmp") ' Load it from disk DataReport1.Refresh End Sub

sir , i am bijoy chakraborty. from adra, i want the code for print data in for with formated . then i will print the form as report . and it will be condensed printing in dot metrix printer . my email add is [email protected] plese help me sir,

I have created a project on vb6, I need the data to print from text as well as combo boxes but clicking on the command button labelled print, how do I do this.

Sir, how can I directly export the contents of my List view into data report? I am making Information System for my Thesis. My problem now is on how to print the filtered names of student in List view directly using [email protected]

im using vb 6 and datareport.how to use group header in datareport

hello there developing a database application in vb 6 i want to print the record which is just saved in database pls help my email id is [email protected] thank you

plzz help me to print a vb form with its all contents.. thanks!! m waiting for ur rply...

hello. i know vb6 but not so much about it.. I have a problem right now on how i am going to print the selected record in the datagrid.. can you help me with this one? thank you so much..

show me how to write a code to print a mdi form

In reply to by please help (not verified)

Just this code........ Private Sub Command1() me.print end sub or Private Sub Command1() form1.print end sub it will work............

Add new comment