943,708 Members | Top Members by Rank

Ad:
Feb 12th, 2007
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vsraju is offline Offline
1 posts
since Feb 2007
Feb 11th, 2009
0

Re: How to Create A Report In VB

hey did u get answer for ur query as i am also in need of the answer for the same query. plz reply asap.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suzz is offline Offline
4 posts
since Feb 2009
Feb 11th, 2009
0

Re: How to Create A Report In VB

So... Suzz. Let's not post to threads that are two years old.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 11th, 2009
0

Re: How to Create A Report In VB

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
vbnet Syntax (Toggle Plain Text)
  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
vb.net Syntax (Toggle Plain Text)
  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)
Reputation Points: 69
Solved Threads: 19
Junior Poster
samir_ibrahim is offline Offline
155 posts
since Sep 2008
Feb 11th, 2009
0

Re: How to Create A Report In VB

I did not notice that this post is 2 years old.

Should I delete my answer?
Reputation Points: 69
Solved Threads: 19
Junior Poster
samir_ibrahim is offline Offline
155 posts
since Sep 2008
Feb 12th, 2009
0

Re: How to Create A Report In VB

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. ^_^
Reputation Points: 10
Solved Threads: 1
Junior Poster
jaasaria is offline Offline
123 posts
since Jul 2007
Feb 12th, 2009
0

Re: How to Create A Report In VB

Click to Expand / Collapse  Quote originally posted by jaasaria ...
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

Quote ...
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

Quote ...
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 ?
Reputation Points: 69
Solved Threads: 19
Junior Poster
samir_ibrahim is offline Offline
155 posts
since Sep 2008
Sep 10th, 2010
0

Render HTML or XML/XSL as PDF

Click to Expand / Collapse  Quote originally posted by vsraju ...
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.
How about a way to render directly to the browser a PDF from either a stream, or XML/XSL File. If you know of a way lmk.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
astonvic is offline Offline
1 posts
since Sep 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: DoCmd.Close acForm, Me.Name closes Access instead of Form
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: SQL STATEMENT INSERT INTO .sdf db?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC