网上找到以下一段代码,可以打印pdf文件,但怎么关闭这个文件呢,请各位帮忙。谢谢!
Thisform.Newobject('pdf', 'Olecontrol', '', '', 'AcroPDF.PDF.1')
Thisform.pdf.Move( 10, 10, Thisform.Width - 20, Thisform.Height - 20)
Thisform.pdf.SetShowToolbar(.f.)
Thisform.pdf.LoadFile( Getfile('pdf') )
Try
Thisform.pdf.Visible = .T.
Catch
Endtry
Thisform.pdf.SetFocus()
Thisform.Newobject('pdf', 'Olecontrol', '', '', 'AcroPDF.PDF.1')
Thisform.pdf.Move( 10, 10, Thisform.Width - 20, Thisform.Height - 20)
Thisform.pdf.SetShowToolbar(.f.)
Thisform.pdf.LoadFile( Getfile('pdf') )
Try
Thisform.pdf.Visible = .T.
Catch
Endtry
Thisform.pdf.SetFocus()