Re: How to Create A Report In VB

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 1
Reputation: vsraju is an unknown quantity at this point 
Solved Threads: 0
vsraju vsraju is offline Offline
Newbie Poster

Re: How to Create Product Registration Code for VB Application.

 
0
  #1
Feb 12th, 2007
IS there a way of generating reports from VB6 ( not through Data Reports & Crystal Reports ) which directly sends to a local printer and printing should be done fast, No matter what ever may be the font.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 4
Reputation: suzz is an unknown quantity at this point 
Solved Threads: 0
suzz suzz is offline Offline
Newbie Poster

Re: How to Create A Report In VB

 
0
  #2
Feb 11th, 2009
hey did u get answer for ur query as i am also in need of the answer for the same query. plz reply asap.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How to Create A Report In VB

 
0
  #3
Feb 11th, 2009
So... Suzz. Let's not post to threads that are two years old.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 148
Reputation: samir_ibrahim is on a distinguished road 
Solved Threads: 16
samir_ibrahim's Avatar
samir_ibrahim samir_ibrahim is offline Offline
Junior Poster

Re: How to Create A Report In VB

 
0
  #4
Feb 11th, 2009
I can think of 2 function that could able to help you.
#1 Printing by IE
#2 Print Any kind of File

' #1 Print By IE
  1. Dim oIE
  2. Dim FileName
  3. FileName = "c:\myfile.txt" ' or .html or .xml depending on where you stored the data you want to print
  4. oIE = CreateObject("InternetExplorer.Application")
  5. oIE.Visible = True ' You can change this to False
  6. oIE.Navigate2 (FileName)
  7. While oIE.ReadyState <> 4
  8. Wend
  9. oIE.ExecWB 6, 0 ' Print
  10. 'oIE.ExecWB 7, 0 ' Print Preview

#2 PrintFile Function
  1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
  2. (ByVal hwnd As Long, _
  3. ByVal lpOperation As String, _
  4. ByVal lpFile As String, _
  5. ByVal lpParameters As String, _
  6. ByVal lpDirectory As String, _
  7. ByVal nShowCmd As Long) As Long
  8. FileName = "c:\myfile.txt" ' Any kind of file (xls doc xml html )
  9. nRetVal = ShellExecute(0, "Print", FileName, "", "", 0)
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 148
Reputation: samir_ibrahim is on a distinguished road 
Solved Threads: 16
samir_ibrahim's Avatar
samir_ibrahim samir_ibrahim is offline Offline
Junior Poster

Re: How to Create A Report In VB

 
0
  #5
Feb 11th, 2009
I did not notice that this post is 2 years old.

Should I delete my answer?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 113
Reputation: jaasaria is an unknown quantity at this point 
Solved Threads: 1
jaasaria's Avatar
jaasaria jaasaria is offline Offline
Junior Poster

Re: How to Create A Report In VB

 
0
  #6
Feb 12th, 2009
your syntax was written in .net. hahahah....
do u have any vb code to share?


please support this thread even it 2 year old posted. ^_^
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 148
Reputation: samir_ibrahim is on a distinguished road 
Solved Threads: 16
samir_ibrahim's Avatar
samir_ibrahim samir_ibrahim is offline Offline
Junior Poster

Re: How to Create A Report In VB

 
0
  #7
Feb 12th, 2009
Originally Posted by jaasaria View Post
your syntax was written in .net. hahahah....
It is vb6 but I did not know what is [ code=What? ] [ /code ] to write in vb6 syntax

do u have any vb code to share?
Actually I don't have any vb code to share.

The above 2 examples are my code in Visual foxpro, and I convert them to vb6 when I saw this message

please support this thread even it 2 year old posted. ^_^
Did you try the above example and they did not work?

What do you need to know more ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC