我在Demo1的例子中,按下《Preview》钮,便出现以下错误:错误提示: Project Project1.exe raised exception class EReadError with message 'Invalid property value'.Process stopped.运行中代码在_____行上停止 function PrinterPreview: TPrinterPreview; begin if FPrinterPreview = nil then begin PreviewFormEh := TPreviewFormEh.Create(Application); _________________________________________________________ FPrinterPreview := PreviewFormEh.PreviewEh1.Printer; end; Result := FPrinterPreview; end;是什么问题?请多多指点!
你好!
装上后demo1中的printdbgrideh预览按钮运行出错。
能说是什么原因吗?
Project Project1.exe raised exception class EReadError with message 'Invalid property value'.Process stopped.运行中代码在_____行上停止
function PrinterPreview: TPrinterPreview;
begin
if FPrinterPreview = nil then
begin
PreviewFormEh := TPreviewFormEh.Create(Application);
_________________________________________________________
FPrinterPreview := PreviewFormEh.PreviewEh1.Printer;
end;
Result := FPrinterPreview;
end;是什么问题?请多多指点!