Skip to content

Instantly share code, notes, and snippets.

@Mark-RSK
Created February 24, 2018 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mark-RSK/c086e6fcf62e2ef2da8dbf02d2a16ed2 to your computer and use it in GitHub Desktop.
Save Mark-RSK/c086e6fcf62e2ef2da8dbf02d2a16ed2 to your computer and use it in GitHub Desktop.
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