Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Form ( file name ) gives different sizes
Message
 
 
To
03/07/2008 09:00:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01275705
Message ID:
01328643
Views:
6
> Hi Scott,
> I fixed the problem by setting the windows default printer to the one needed, then back to the original printer when done.
> We have not gone to Service Pack 2, so I can not re-try it at this time.
> Beth

Ok, thanks!
I am wondering if this was fixed in SP2 because it seems to work fine for me now. Here is a sample program to test it.
SET SAFETY OFF
CLOSE ALL
CLEAR ALL
CLEAR
lcPrinterToSet = "Acrobat Distiller" && i.e. NOT the Default Printer but another one installed
USE "E:\Program Files\Microsoft Visual FoxPro 9\Samples\Tastrade\Data\customer.dbf"
REPORT FORM "E:\Program Files\Microsoft Visual FoxPro 9\Samples\Tastrade\Reports\listcust.frx" TO FILE CUSTLIST1.TXT NOCONSOLE
lcFile = ADIR(afiles,"CUSTLIST1.TXT")
? afiles(1,2)
SET PRINTER TO NAME (lcPrinterToSet)
REPORT FORM "E:\Program Files\Microsoft Visual FoxPro 9\Samples\Tastrade\Reports\listcust.frx" TO FILE CUSTLIST2.TXT NOCONSOLE
lcFile = ADIR(afiles,"CUSTLIST2.TXT")
? afiles(1,2)
When I run this code it gives me two different file sizes for both of these text files.
When I modify both the text files I can see different codes

-Regards!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Previous
Reply
Map
View

Click here to load this message in the networking platform