X xubin4456 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #1 如何打印已经保存好的报表文件(.frp格式),用loadformfiles好象不行,老报错。
L levi Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #2 应该用这样用 LoadFile: TMemoryStream LoadFile := TMemoryStream.Create LoadFile.LoadFromFile(xxxxx:0 LoadFile.Position := 0; frReport.EMFPages.LoadFromStream (loadFile); LoadFile.Free;
应该用这样用 LoadFile: TMemoryStream LoadFile := TMemoryStream.Create LoadFile.LoadFromFile(xxxxx:0 LoadFile.Position := 0; frReport.EMFPages.LoadFromStream (loadFile); LoadFile.Free;
L levi Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #3 或者用这个也可以 frReport1.LoadPreparedReport(FileName)
X xubin4456 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #4 OK,已经解决,3Q![] frp1.LoadPreparedReport(filename); frp1.ShowPreparedReport;