> >
> >
> > CREATE REPORT FileName | ? FROM Source [FORM | COLUMN]
> > [FIELDS FieldList] [ALIAS] [NOOVERWRITE] [WIDTH nColumns]
> >
> > try this code
> >
> >
> > clea all
> > &&generate a report "on the fly" with any table (no memo fields,G)
> > &&First,configure dialog box print to portrait or landscape
> > afile=getfile('dbf')
> > if empty(afile)
> > return
> > endi
> >
> > Use (afile) SHARED AGAIN IN 0
> > SELECT * FROM (afile) INTO CURSOR mycurs
> > Create Report c:\myreport From DBF("mycurs")
> >
> > repo form c:\myReport preview &&max 8 fields in portrait, max 11 columns in landscape view
> > use in 0
> >
> >
> > Dont rate please.its only for the pleasure to help.Give me only a feed back.
> > Yousfi Benameur
>
> thanks! and i try and gladly this is really what i want to happen, but how can i add page header?
>
> thanks in advance.
that is called "quick report" and you cannot put too things . It works with the table/cursor directly. If you want some sophistical report you must use the designer.
Dont rate please.its only for the pleasure to help.Give me only a feed back.
Yousfi Benameur