Solved

Printing in VB4

Posted on 1998-07-05
6
262 Views
Last Modified: 2010-05-03
I have never used vb to print a report of any kind. I love R&R. However, I am using VB4 to access
Foxpro 2.x databases ( works great, but sadly not knowing how to maintain an index in this VB App
makes me limited as to how to present the data. Do I use Crystal, R&R with a custom control which I
have done) or is their simply some sample vb programs that I can try and figure out without lots of cryptic
code.

I do have a nice app, but I am just winging it. Sorry not an expert here, just triing to work it out.

Thanks!!!!!

-Scott-
0
Comment
Question by:scottward
6 Comments
 
LVL 4

Expert Comment

by:tomook
ID: 1464971
You can write your own reports using only VB. Crystal Reports is a reasonable option. You might want to check out ActiveReports (www.datadynamics.com) for another report writer, very close to Access, if you know Access.
0
 

Expert Comment

by:staffiidba
ID: 1464972
What kind of reports are you looking at doing ?
On the fly with snazy graphics, or just a plain line print of data.
Also - using DB structures, and wanting to keep ODBC compliant or just printing from flat files ???
0
 

Author Comment

by:scottward
ID: 1464973
Using xbase files with the OpenRecordSet method, I have the data I just would
like to print it out, Nothing fancy, just looking for some examples. Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1464974
You can format your own lines using the printer object in VB, and if it's a simple report then it's almost like printing in DOS, a line at a time (codewise).  I have found that the VSView control from Videosoft is an improvement over the VB printer object, and provides a preview capability as well, which many users are expecting.  If doing much printing in VB of your own development, I would take a look at this control.  I have found Videosoft controls to be smaller, faster, and more reliable than most out there.  Sure, Crystal reports is an option, but be prepared to spend some learning curve time.
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1464975
Here's how really straight forward it can be:

Msg = "This is printed on page"
Printer.Print Msg      ' Print bunches of these
Printer.NewPage      ' Send new page.
Printer.EndDoc      ' Printing is finished.
      
0
 

Author Comment

by:scottward
ID: 1464976
Thanks!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question