PrintForm = new TPrintForm(this);
PrintForm->QuickRep1->PreviewModal();
delete PrintForm->QuickRep1;
delete PrintForm;
代码如上。(使用Access数据库,打印时有读取数据)
并不是每次打印都会出现这个错误,错误信息如下:
Access violation at address 0196764 in module 'BORLNDMM.DLL'. Write of address 409004723.
当产生这个错误后按确定,再次打印则出现如下错误信息:
A component named QRStandardPreview already exists.