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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forgotten Answer re Report Form 1

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
If the apps's report form files are not explicitly excluded in the Project Manager do I need to include them in the distributed Setup file?

Thanks

GenDev
 
I have removed my test in the prg for the report form files, removed the files themselves form the distributed Setup.exe and the reports appear to work fine.

So this looks like the answer is No - report files not required.

GenDev
 
The answer can be no, but it depends...

Search reportpreview.app in the help.
In the topic "How to: Specify and Distribute ReportPreview.App" you find:
If you wish to leverage the new object-assisted report engine to preview reports in your application, then you must choose whether to:

Write your own custom preview container, as described in Creating a Custom Preview Container.

Distribute ReportPreview.App with your application.

And the same goes for reportbuilder.app and reportoutput.app, for reportlistener assisted reporting, theys are needed.

Bye, Olaf.
 
That's correct. Essentially, any file that your application uses directly can be bound into the executable, in which case they don't have to be included in the distribution.

But a couple of important points to note:

1. The above doesn't apply to files read via an Activex control or by Automation.

2. Any files bound into the executable are read-only. If you want to dynamically modify your report file for any reason (which is unlikely), you will have to distribute it separately.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Again thanks Olaf and Mike,

My code for a preview is

Code:
oRepForm = Createobject("Form")
		With oRepForm
		.Caption = ''
		.WindowState = 2   && This will maximize the form
		.Icon ='myicon.ico'
		.Name = 'MyApp!'
		.Show()

logging('Here - before report')
Report Form (myprintfile) Preview Window ;
(oRepForm.Name) To Printer Prompt

Is there any benefit to include repreview.app in this case?

My app has been around for 6 years so may not include the latest.

Regards

GenDev

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top