Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question STRTOFILE in .Net Compatibility
Message
From
08/04/2010 02:57:39
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01459243
Message ID:
01459294
Views:
86
This message has been marked as a message which has helped to the initial question of the thread.
>The current version of our application is in VFP. The next major release will be in .Net. Once piece that is coming up in the migration has me concerned, and I thought I would ask the experts.
>
>Our data is stored (in both versions) in SQL. We do some documentation that get turned into a PDF document. In our current version, we use the FileToStr() function to store that data in the database in a queue. We then have an interface process that runs (also in VFP) that cycles on a timed bases, checks for any records in the queue that haven't been sent. It then uses the STRTOFILE() function to recreate that PDF and transfer to an external system.
>
>Our interface module will probably be staying in VFP after the main application has been converted to .NET. Okay, so my question is,
>
>1. Is there a function in .NET (C#) that works like the FileToStr?
>2. If so, will VFP StrToFile function be able to read that string value created in C# and still create the PDF?
>
>Thanks for you in site.
>
>Kirk

Kirk,

If you are reading/writing pdf files, you use a byte array and not a string in .net
Reading data from disk (other than a text file) needs to be stored in a byte[]. - or better use Streams
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform