Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Printing in VB4

Posted on 1998-07-05
6
Medium Priority
?
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 9

Accepted Solution

by:
cymbolic earned 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Suggested Courses

688 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