Skip to content

Instantly share code, notes, and snippets.

@feliperomero3
Created September 1, 2015 20:19
Show Gist options
  • Save feliperomero3/1950bdfb2315a2908b81 to your computer and use it in GitHub Desktop.
Save feliperomero3/1950bdfb2315a2908b81 to your computer and use it in GitHub Desktop.
How to read Crystal Report file Design version programmatically
Don Williams
Correct Answer
by Don Williams on Mar 14, 2011 3:16 PM
Hello,
You can't read the info from the file itself, proprietary format,
you have to load the report:
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
MessageBox.Show("Report version: " + rptClientDoc.MajorVersion.ToString() + "." +
rptClientDoc.MinorVersion.ToString(), "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information);
rpt.ReportClientDocument.Close();
GC.Collect();
Thank you
Don
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment