OK, here's my deal. I have Crystal reports on various pc's on the network and they all must be the same version. so to check this, I want to grab the revision number of off the summary info of the file (right click> properties> file summary information> advanced> revision).
Well, I haven't seen anyone who can tell me how to do that with any straight forward method in vb6, so I found the place its kept in the file header, and I want to read in the file line by line and parse for what I need. Seems simple right? Not exactly.
It seems windows knows the summary info file header when it sees it because I can find what I need easily in notepad but as soon as I use file system object to readline the file in all the info I need is gone. As a matter of fact a readall of the file shows it to be completely different that what shows in notepad, but that’s more of an aside than the actual dilemma. So then I decided that perhaps it was a crystal reports issue and that renaming the file with a different extension might make a difference. Wrong. I’ve tried a bunch already, just anything I could think of to try and throw it off but no matter what I do the file gets converted during the reading and my summary info is gone. I realize if you read this far you must be exhausted but I’ve had this issue now for a while and I’m just dumbfounded. If anyone can offer any help/insight/solutions to this I’d be extremely grateful. Thank you so much
-Jacob Herrera
Just in case you’re wondering, here's what I’m using. its pretty straight forward:
Well, I haven't seen anyone who can tell me how to do that with any straight forward method in vb6, so I found the place its kept in the file header, and I want to read in the file line by line and parse for what I need. Seems simple right? Not exactly.
It seems windows knows the summary info file header when it sees it because I can find what I need easily in notepad but as soon as I use file system object to readline the file in all the info I need is gone. As a matter of fact a readall of the file shows it to be completely different that what shows in notepad, but that’s more of an aside than the actual dilemma. So then I decided that perhaps it was a crystal reports issue and that renaming the file with a different extension might make a difference. Wrong. I’ve tried a bunch already, just anything I could think of to try and throw it off but no matter what I do the file gets converted during the reading and my summary info is gone. I realize if you read this far you must be exhausted but I’ve had this issue now for a while and I’m just dumbfounded. If anyone can offer any help/insight/solutions to this I’d be extremely grateful. Thank you so much
-Jacob Herrera
Just in case you’re wondering, here's what I’m using. its pretty straight forward:
Code:
Dim cFSO As New FileSystemObject
Dim cF As file
Dim line as string
Set cF = cFSO.GetFile(filename)
Set cStream = cF.OpenAsTextStream(ForReading)
line = cStream.ReadLine