Any1 know how 2 update data in a DataEnvironment? I tried to search throught the net but unable to get solution to my problem. Please guide me with some simply code. Thx in advance.

Hi,
I was also faced that problem, but never get good solution. Data Environment is not refresh when add a new Record. It will be static.

But i did separate the Data Environment and my application. Then Make Exe with Data Environment.

Whenever you want to print from Data Environment, use Shell () command to execute an exe file..

But some other solution may exist.

use this

DataEnvironment1.(your rscommand name).Properties.Refresh
Dataenvironment1.(your rscommand).open
show you report here
Dataenvironment1.(your rscommand).close

Regards

DSP

or just simply use this,

DataEnvironment1.rsCommandName.Update

hope that works

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.