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

Waler Runtime device assignment

edited July 2006 in Devices
Hi,

I am wrapping some of the export routines myself so that users have a
one-button click to export a pre-defined formt to a pre-dfined file name. I
have tried assigning ppReport1.DeviceType to the appropriate export type but
it is not working. Some examples:

etText: ppReport1.DeviceType := dtTextFile;
etPDF: ppReport1.DeviceType := 'edfPDF';
etExcel: ppReport1.DeviceType := 'edfXLS';
etWord: ppReport1.DeviceType := 'edfRTF';
etHTML: ppReport1.DeviceType := 'edfHTML';

The first non-Waler export 'dtTextFile' is fine, however when I assign any
of the Waler ones and step through code, the DeviceType still shows as
dtScreen. Am I not assigning device type correctly? The definitions of
these I obtained from the txRB.pas file.

I am using RB V7 and ExtraDevices V3

Thanks

Alex

Comments

  • edited July 2006
    OK have worked it out, using the wrong names for device types.

    Thanks

    Alex
This discussion has been closed.