Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print To File

edited July 2001 in General
When I load a report from a file, the PrintToFile property appears to be
False. How is that set/saved in the report? If I set PrintToFile:=True
right after loading the report, it works fine.

Wayne

Comments

  • edited July 2001
    It is saved in the rtm file. The AllowPrintToFile is saved as part of this
    file.

    If the template is saved as ascii and not binary (see the template property
    on the report component) you can see the property value which is saved.
    You'll see something like this for an empty report if you open the rtm:

    object ppReport1: TppReport

    PrinterSetup.BinName = 'Default'

    PrinterSetup.DocumentName = 'Report'

    PrinterSetup.PaperName = 'Letter'

    PrinterSetup.PrinterName = 'Default'

    PrinterSetup.mmMarginBottom = 6350

    PrinterSetup.mmMarginLeft = 6350

    PrinterSetup.mmMarginRight = 6350

    PrinterSetup.mmMarginTop = 6350

    PrinterSetup.mmPaperHeight = 279401

    PrinterSetup.mmPaperWidth = 215900

    PrinterSetup.PaperSize = 1

    Template.FileName = 'C:\Tech Support\Templates\1234.rtm'

    Template.Format = ftASCII

    AllowPrintToFile = True

    DeviceType = 'Screen'

    Left = 240

    Top = 168

    Version = '6.01'

    mmColumnWidth = 0

    object ppHeaderBand1: TppHeaderBand

    mmBottomOffset = 0

    mmHeight = 13229

    mmPrintPosition = 0

    end

    object ppDetailBand1: TppDetailBand

    mmBottomOffset = 0

    mmHeight = 13229

    mmPrintPosition = 0

    end

    object ppFooterBand1: TppFooterBand

    mmBottomOffset = 0

    mmHeight = 13229

    mmPrintPosition = 0

    end

    end



    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.