Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make my report work correctly in other machine?
Message
From
24/08/2006 10:58:52
 
 
To
23/08/2006 11:37:36
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01147815
Message ID:
01148226
Views:
19
I use the following program to clear printer info from all report files included in a project.
* Clear Printer Information in FRX
Local loFile, lnReportCount
lnReportCount = 0
Clear
MODIFY PROJECT ? NoShow NoWait    && Prompts for the Project Filename
* Loops into the Project Collection Object
For Each loFile In _Vfp.ActiveProject.Files 
	If loFile.Type = 'R'   		&& Checks for Report File Type
	   Wait Window 'Clearing Fields in: ' + loFile.Name TIMEOUT 1
	   Use (loFile.Name)
	   Go Top
	   Locate For ObjType = 1 and ObjCode = 53
	   If Found()
	      Replace Tag  with "", Tag2 with ""
	      lnReportCount = lnReportCount + 1
	      Use
	   ENDIF
	EndIf
EndFor
* Displays Process Summary
Wait Window AllTrim(Str(lnReportCount)) +; 
     ' Report(s) Modified in Project ' +;
      _Vfp.ActiveProject.Name
- Ravi Taxali
Visual FoxPro Made Simple An excellent book for beginners as well as experienced programmers
Never Forget Again. Setup Email Reminders.
Previous
Reply
Map
View

Click here to load this message in the networking platform