I just installed LL21. I am writing a C# program to open LL Designer. However I have very old LL reports (LL12). When I run the program, I get error.
The project file cannot be read
-it is password-protected
-it has an invalid format or
-it was created with a newer version of the software.
None of the above reason would apply to my case.
This is the code sample:
using (FileStream fs = File.Open(sTemplateFile, FileMode.))
switch (sTemplateFile.Substring(sTemplateFile.Length - 3, 3))
Am I missing something (I am new to C#)? Is there other possible reason?
If I use Sample Designer and open this file, it will ask me to migrate to newer version and it will open but through the code it doesn’t.
Thanks for your help,