Subject Re: Preview.wfm and report printing
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 25 Oct 2023 13:05:09 -0700
Newsgroups dbase.getting-started

On 10/25/2023 12:42 PM, trevor wrote:
> Ken Mayer wrote:
>
>> On 10/25/2023 10:21 AM, trevor wrote:
>>> Ken Mayer wrote:
>>>
>>>> On 10/24/2023 6:23 AM, Mervyn Bick wrote:
>>>>>
>>>>> I hesitate to suggest trying to use the new version (2023A)
>>>>>
>>>>
>>>> Not a problem, the reportViewer has been in dBASE since Visual
>>>> dBASE 7 ... (that's where "Preview.wfm" got it's start ...).
>>>>
>>>> Ken
>>>
>>> At least that's answered one of my questions why I can't get
>>> Mervyn's solution to work.
>>>
>>> I'm trying Mervyn's solution on the form, with a report I know
>>> works in old preview. So using new ver3.8 and  the forms onopen
>>> event.
>>>
>>> function form_onOpen
>>> ....
>>> ...
>>> set procedure to pintot.rep
>>> form.orep = new pintotReport()
>>> return
>>>
>>> On opening the form
>>> I get error Class does not exist  "Pintotreport:Pintotreport"
>>> and gives me line  .. form.oRep = new PintotReport()
>>
>> Try: PrintToReport ... typos are killers. ;)
>>
>> Ken
>
> Unfortunately Ken it is "PINTOT". ( I have a habit of sticking with
> stupid initial spelling errors )

Well, if that's the case, then open the file "pintot.rep" in the source
editor, and see what is in the statement:

class xxx of report
    where 'xxx' is what is needed. Is this spelled "pintotreport" or is
it something else?

Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm