Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Crystal Reports 10 with Visual FoxPro 7 1

Status
Not open for further replies.

mngaetez

IS-IT--Management
Mar 18, 2004
4
US
Hi guys, could anybody help me to run a simple Crystal reports 10 report with a simple Visual FoxPro7 form.

I want to print directly to the defualt printer.

Thanks
 
I don't think there are and FoxPro samples past CR 8.5, but this should get you started:
RDC Sample Application in Visual FoxPro - Preview Report

To print directly to the printer, you'll use the PrintOut method:

ReportObject.PrintOut ([PromptUser], [NumberOfCopies], [Collated], [StartPageNumber], _ [StopPageNumber])

-dave
 
I received this, and it works great.

oCRApp = createobject("CrystalRuntime.Application.10")
oRep = oCRApp.OpenReport("csr-pcklst.rpt")
oRep.Printout(.F.) && .F. = no printer dialog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top