Created
February 24, 2018 13:54
-
-
Save Mark-RSK/c086e6fcf62e2ef2da8dbf02d2a16ed2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static IRenderService CreateJsReportInstance(bool useWeb) | |
{ | |
IReportingBinary binary = null; | |
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) | |
binary = jsreport.Binary.Ph2.JsReportBinary.GetBinary(); | |
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | |
binary = jsreport.Binary.Linux.Ph2.JsReportBinary.GetBinary(); | |
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) | |
binary = jsreport.Binary.OSX.Ph2.JsReportBinary.GetBinary(); | |
return useWeb ? CreateServer(binary) : CreateUtility(binary); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment