ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > ActiveReport Class > LoadStyles Method : LoadStyles(Stream) Method |
Dim s As New System.IO.MemoryStream Dim report1 As New ActiveReport 'save stylesheet to stream report1.SaveStyles(s) 'change position of read stream s.Position = 0 Dim report2 As New ActiveReport 'load report's stylesheet from stream report2.LoadStyles(s)
System.IO.MemoryStream s = new System.IO.MemoryStream(); ActiveReport report1 = new ActiveReport(); //save stylesheet to stream report1.SaveStyles(s); //change position of read stream s.Position = 0; ActiveReport report2 = new ActiveReport(); // load report's stylesheet from stream report2.LoadStyles(s);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2