Being self taught I am still somewhat of a beginner in my VFP knowledge hence lots of questions to tek-tips forum - and thanks to all who have helped me.
I am recoding parts of my application and have got to the Reporting area.
I only have 4 discrete reports however I need to provide for A4 and US letter users.
Old scheme - which used to work
Reading forums in the past 5 years I decided to keep the report files out of the exe - copy the required report to my temp folder and adjust the papersize in the frx file. I used to test if the required report was in the application folder first and then test if the commonly filenamed 'myreport.frx' was present after my copy.
I then had common routines based on 'myreport.frx' to
-Create a form filling my app's screen
-Create a small window on the form but hidden (not hidden for me so I can see what's happening)
-Run the report in the small screen to get the number of pages - then run again in the full window preview so that I can add say Page 1 of 12 etc
However some weeks/months ago that system seemed to stop working so in a panic I changed the scheme.
New scheme
1 Defined a report for each particular paper size.
2 Included them in my app's exe.
3 I don't see how I can test for the required report but if they are in the project it shouldn't be necessary.
4 The code now shows the form, the small windowappears but (in the debugger) I see it stepping past the first Report Form command and then the second.
Is there anything in my new method which is not the correct way to do it?
Thanks
Coldan
I am recoding parts of my application and have got to the Reporting area.
I only have 4 discrete reports however I need to provide for A4 and US letter users.
Old scheme - which used to work
Reading forums in the past 5 years I decided to keep the report files out of the exe - copy the required report to my temp folder and adjust the papersize in the frx file. I used to test if the required report was in the application folder first and then test if the commonly filenamed 'myreport.frx' was present after my copy.
I then had common routines based on 'myreport.frx' to
-Create a form filling my app's screen
-Create a small window on the form but hidden (not hidden for me so I can see what's happening)
-Run the report in the small screen to get the number of pages - then run again in the full window preview so that I can add say Page 1 of 12 etc
However some weeks/months ago that system seemed to stop working so in a panic I changed the scheme.
New scheme
1 Defined a report for each particular paper size.
2 Included them in my app's exe.
3 I don't see how I can test for the required report but if they are in the project it shouldn't be necessary.
4 The code now shows the form, the small windowappears but (in the debugger) I see it stepping past the first Report Form command and then the second.
Is there anything in my new method which is not the correct way to do it?
Thanks
Coldan