![]() Public static System.Byte printReportToByteArray(SrsReportRunController _controller) _dataContract.parmReportBytes_IM(_reportBytes) If (_dataContract.parmDoNotSaveFile_IM()) Public static void SRSPrintDestinationSettingsDelegates_toSendFile(System.Byte _reportBytes, SrsReportRunPrinter _printer, SrsReportDataContract _dataContract, .ParameterValue _paramArray, EventHandlerResult _result) public static class SrsReportRunHelper_IM The class has another helper method that accepts report contract and returns byte array. Solution here is simple, subscribe to toSendFile delegate and if a contact has new flag specified then save report bytes back to the contact and set result to false, so standard code won’t save the file. Now, let’s create helper class that will do all the magic required. Public boolean parmDoNotSaveFile_IM(boolean _doNotSaveFile_IM = doNotSaveFile_IM) Public System.Byte parmReportBytes_IM(System.Byte _reportBytes_IM = reportBytes_IM) įinal public class SrsReportDataContract_IM_Extension It’s a well-known problem and hopefully it will be fixed one day, meanwhile here is another way how to achieve the same without any compile warnings.įirst, lets extend SrsReportDataContract and add 2 variables: do not save file flag and byte array. There are blogs available on this topic, like this one, but they are using lots of internal use only objects, like SRSProxy. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |