 | | From: | tim | | Subject: | form.print() | | Date: | Wed, 08 Dec 2004 10:10:44 -0500 |
|
|
 | In version 5.7 and Plus 2.1, I could use
form.print()
and it would print the form contents in black and white and without the window borders or header.
Now in v.2.5, the border, form color and header appear.
This is a dramatic change between the two versions and makes it unusable for several of my applications (which are not feasible for a report form).
tim
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: form.print() | | Date: | Wed, 08 Dec 2004 08:15:23 -0800 |
|
|
 | tim wrote: > In version 5.7 and Plus 2.1, I could use > > form.print() > > and it would print the form contents in black and white and without the window borders or header. > > Now in v.2.5, the border, form color and header appear. > > This is a dramatic change between the two versions and makes it unusable for several of my applications (which are not feasible for a report form).
As it appears you were relying on a "feature" that was actually considered to be broken (and R&D has worked on fixing it), it appears to me that you need to learn to use the report designer and start creating reports.
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | tim | | Subject: | Re: form.print() | | Date: | Fri, 10 Dec 2004 14:14:11 -0500 |
|
|
 | It appears to me you do not know enough about my application. What I am doing will not work in reports (or so I've been previously instructed.).
Ken Mayer [dBVIPS] Wrote:
> tim wrote: > > In version 5.7 and Plus 2.1, I could use > > > > form.print() > > > > and it would print the form contents in black and white and without the window borders or header. > > > > Now in v.2.5, the border, form color and header appear. > > > > This is a dramatic change between the two versions and makes it unusable for several of my applications (which are not feasible for a report form). > > As it appears you were relying on a "feature" that was actually > considered to be broken (and R&D has worked on fixing it), it appears to > me that you need to learn to use the report designer and start creating > reports. > > Ken > > -- > /(Opinions expressed are purely my own, not those of dataBased > Intelligence, Inc.)/ > > *Ken Mayer* [dBVIPS] > /Golden Stag Productions/ > dBASE at goldenstag dot net > http://www.goldenstag.net/GSP > http://www.goldenstag.net/dbase
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: form.print() | | Date: | Fri, 10 Dec 2004 11:39:48 -0800 |
|
|
 | tim wrote: > It appears to me you do not know enough about my application. What I am doing will not work in reports (or so I've been previously instructed.).
How could I know anything about your application?
My point is that you were relying on bugs and poor behavior in the form designer that was fixed, and now you're expecting it to work the way it did before. The behavior that was addressed was done so because users of the product wanted it fixed to the way it SHOULD work ...
You should at least TRY to work with the report engine -- I think you might be surprised at what it can do.
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | tim | | Subject: | Re: form.print() | | Date: | Tue, 14 Dec 2004 21:32:27 -0500 |
|
|
 | Okay - I give. What worked well for years in 5.7 will not work now (bugs or no bugs).
Can the report engine - -Have a 3 line header with Title (i.e. "Photo Sheet") -Put 2 photos on a page based on the photo number; -Number the photos in relation to the page number (top photo is page number*2 - 1 -Put the total number of pages to be printed at the bottom of the page.
The page number dictates the photos that are shown on that page. Page one has Photo-1.jpg and Photo-2. jpg Page two has Photo-3.jpg and Photo-4.jpg
The number of pages to be printed (to printer or PDF) is pre-determined based on the number of photos to be presented.
All of this using the following (or comprible code):
x = val(form.prnstart.value) y = val(form.prnstop.value)
do while x <= y
goto x a = (2*x)-1 b = (2*x) form.pageno = x form.entpa.value = a form.entpb.value = b form.entpgno.value = x form.apic.datasource = "FILENAME " + "c:\photos\" + "photo-" + ltrim(str(a)) + ".jpg" && I took out the hyphen form.bpic.datasource = "FILENAME " + "c:\photos\" + "photo-" + ltrim(str(b)) + ".jpg"
form.print()
x = x + 1
Ken Mayer [dBVIPS] Wrote:
> tim wrote: > > It appears to me you do not know enough about my application. What I am doing will not work in reports (or so I've been previously instructed.). > > How could I know anything about your application? > > My point is that you were relying on bugs and poor behavior in the form > designer that was fixed, and now you're expecting it to work the way it > did before. The behavior that was addressed was done so because users of > the product wanted it fixed to the way it SHOULD work ... > > You should at least TRY to work with the report engine -- I think you > might be surprised at what it can do. > > Ken > > -- > /(Opinions expressed are purely my own, not those of dataBased > Intelligence, Inc.)/ > > *Ken Mayer* [dBVIPS] > /Golden Stag Productions/ > dBASE at goldenstag dot net > http://www.goldenstag.net/GSP > http://www.goldenstag.net/dbase
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: form.print() | | Date: | Wed, 15 Dec 2004 05:36:39 -0800 |
|
|
 | tim wrote: > Okay - I give. What worked well for years in 5.7 will not work now (bugs or no bugs). > > Can the report engine - > -Have a 3 line header with Title (i.e. "Photo Sheet") > -Put 2 photos on a page based on the photo number; > -Number the photos in relation to the page number (top photo is page number*2 - 1 > -Put the total number of pages to be printed at the bottom of the page. > > The page number dictates the photos that are shown on that page. Page one has Photo-1.jpg and Photo-2. jpg > Page two has Photo-3.jpg and Photo-4.jpg > > The number of pages to be printed (to printer or PDF) is pre-determined based on the number of photos to be presented.
It would take some work, but yes ... Check the Knowledgebase articles on working with reports ...
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | John York | | Subject: | Re: form.print() | | Date: | Fri, 10 Dec 2004 21:37:49 -0500 |
|
|
 | I also used to use form.print()
after giving up on the report generator I went to R&R report writer and found I can do everything I ever wanted to do with reports with very little effort
John
"tim" wrote in message news:oN2Ouxu3EHA.1644@news-server... > It appears to me you do not know enough about my application. What I am doing will not work in reports (or so I've been previously instructed.). > > Ken Mayer [dBVIPS] Wrote: > > > tim wrote: > > > In version 5.7 and Plus 2.1, I could use > > > > > > form.print() > > > > > > and it would print the form contents in black and white and without the window borders or header. > > > > > > Now in v.2.5, the border, form color and header appear. > > > > > > This is a dramatic change between the two versions and makes it unusable for several of my applications (which are not feasible for a report form). > > > > As it appears you were relying on a "feature" that was actually > > considered to be broken (and R&D has worked on fixing it), it appears to > > me that you need to learn to use the report designer and start creating > > reports. > > > > Ken > > > > -- > > /(Opinions expressed are purely my own, not those of dataBased > > Intelligence, Inc.)/ > > > > *Ken Mayer* [dBVIPS] > > /Golden Stag Productions/ > > dBASE at goldenstag dot net > > http://www.goldenstag.net/GSP > > http://www.goldenstag.net/dbase >
|
|