# Re: 单笔资料的列印

Posted by JOB on November 26, 1999 at 10:57:28:

In Reply to: 单笔资料的列印 posted by Vick Wang on November 26, 1999 at 09:23:14:

: 请问有没有人试过列印出搜寻出来的资料做单笔列印
: DATARAPORT 只能给予DATA ENVIRONMENT 的值
: 可以给予表单上文字方块的值吗 ?

DataEnvironment1.RecordsetsintRpt1).Close DataEnvironment1.Commands(intRpt).CommandType = adCmdText '将 CommandText 预存程式
DataEnvironment1.Commands(intRpt).CommandText ="SELECT ....... WHERE FIELDNAME = '" & VALUE & "'.........."
DataEnvironment1.Commands(intRpt).Execute

Follow Ups: