support.activereports.general

Started by webadmin@datadynamics.com at 07-16-2003 12:00 AM. Topic has 1 replies.

Print Search
Sort Posts:    
   07-16-2003, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Export to .rdf problem
Originally Posted By: R. Gibson<rgibson@summitimaging.net>

I am trying to save an active report as a .rdf file.
When i create the report and the save it, the .rdf has a file size of 30kb
and is empty.
But when I put the report in a activereport viewer control it will save the
.rdf correctly. What am I doing wrong????

My code for creating and saving the file

Private Sub Command1_Click()
ActiveReport1.Run True
ActiveReport1.Pages.Save FilePath & ".rdf"
end sub

--

Thank You,

Reed Gibson




   Report 
   07-30-2003, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Re: Export to .rdf problem
Originally Posted By: Jennifer-DD<activebar.support@datadynamics.com>

Hi,

The problem is the code is moving on to your save code before the report is
finished running. By setting the Run to False instead of True it will stop
the code until the report is finished so that the pages and all are finished
before it attempts to save it. Please try like the following code instead:

Private Sub Command1_Click()
ActiveReport1.Run False
ActiveReport1.Pages.Save "C:\my2.rdf"
End Sub

I apologize for the wait on a reply.

"R. Gibson" wrote in message
news:MRvusX8SDHA.1508@dynaweb.datadynamics.com...
> I am trying to save an active report as a .rdf file.
> When i create the report and the save it, the .rdf has a file size of 30kb
> and is empty.
> But when I put the report in a activereport viewer control it will save
the
> .rdf correctly. What am I doing wrong????
>
> My code for creating and saving the file
>
> Private Sub Command1_Click()
> ActiveReport1.Run True
> ActiveReport1.Pages.Save FilePath & ".rdf"
> end sub
>
> --
>
> Thank You,
>
> Reed Gibson
>
>
>



   Report 
GrapeCity » Forum Archives » support.activer... » Re: Export to .rdf problem

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.