Hi Andrus,
You've to remove not only detail band record itself but also records for all objects in the detail band. Take a look at source code of Frx2Word to get an idea how you can find them. I'm not sure but also possible that you'll have to adjust vertical position for other bands.
You can also take a look at GenRepoX By Markus Egger from
http://www.eps-software.com/isapi/eps.dll?products>I need to remove detail band from frx file programmatically.
>I tried the following program, but this causes C5 error in VFP 7.
>How to remove detail band programmatically ?
>
>
>use myreport.frx exclusive
>delete for objtype=9 and objcode=4
>pack
>USE
>REPORT FORM form myreport PREVIEW NOWAIT SUMMARY
>
>
>Detail band needs to be removed to fix vfp bug:
>Clicking Print button in REPORT NOWAIT PREVIEW SUMMARY window prints report detail lines!
>I reported this to Microsoft but havent got any response.
--sb--