Click here to Skip to main content
15,888,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have made an application where i get data from user. i have got the data but now i want to print them , how to do so.

it should be printed in the particular arranged format.

i have been trying since one week but not yet getting the proper result.

i tried printform visualbasic powerpack but it does not print the full data present on the form.

many people suggested me to use document printing, but i cannot understand how to use that. but document printing example i saw , it prints only the text file document or word document .

but i have to print, retrieving my data from database.
i have retrieved data on my form , now please tell me how do i print them......
Posted
Updated 19-Jul-11 7:46am
v2
Comments
[no name] 19-Jul-11 13:47pm    
It is spelled 'please' not 'plz'

1 solution

 
Share this answer
 
v2
Comments
Member 8043849 19-Jul-11 13:53pm    
what this line is for is it printing txt file.

streamToPrint = new StreamReader
("C:\\My Documents\\MyFile.txt");

plz give a little time , what change do i need to make in that code.

i copied the code its giving error.
and is it going to print my form. or what.

plz help without printing my application will be of no use . trying since one week....
Member 8043849 19-Jul-11 14:07pm    
error :
printdocument namespace not found are u missing
[no name] 19-Jul-11 14:16pm    
You obviously don't have all of the necessary assemblies referenced.
[no name] 19-Jul-11 14:18pm    
The line is very plain and simple to understand. It is reading hte file C:\\My Documents\\MyFile.txt into stream to be used as the printed output.

If you have spent so much time on this you are obviously over your head. Stop what you are doing, try something much more simple or find another career.
Member 8043849 19-Jul-11 14:38pm    
but i dont have to print the text file. why dont u understand.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900