Question “Is is possible to export an archive directly to a memory stream?” Solution Starting with ReportBuilder 9, it is possible to use the TppStreamDevice.OutputStream property to export a report directly to a memory stream. Note that you will need to create and manage the string yourself once you take control of it. Download: ArchiveToStream.zip Full Article…
Search the Wiki
How To…Add a Drawcommand to a Page
Question “How do I add items to an archived page before viewing or printing with the Archive Reader?” Solution Create a generic TppRasterDevice and implement its OnPageReceive event to add a drawcommand to the page before the report is rendered. Download: ArchiveReaderAddDrawCommand.zip Sample Delphi code: procedure TForm1.ppArchiveReader1BeforePrint(Sender: TObject); var lDevice: TppDevice; begin // get reference Full Article…
Archive to Blob
TECH TIP: Loading an Archive File to a Blob (or memory stream) You can easily write a routine to take a .RAF file and load it into a blob field or a TMemoryStream: myFileStream := TFileStream.Create('myArhcive.RAF', fmOpenRead); myFileStream.Position := 0; myBlobField.LoadFromStream(myFileStream); myFileStream.Free; OR myMemoryStream := TMemoryStream.Create; {note: passing 0 as the second parameter will copy the Full Article…