Aug 21, 2007 Hi All - Am having a problem printing a large collection of existing PDF files in Access. Sub pdf() Set AcroPDF = CreateObject('acroPDF.PDF') Dim aPDF As AcroPDF. I want to print pdf-files. Acrobat Reader Automation? Im trying to automat Acrobat Reader. A = CreateObject('AcroPDF.PDF.1'). Hi All - Am having a problem printing a large collection of existing PDF files in Access. Sub pdf() Set AcroPDF = CreateObject('acroPDF.PDF') Dim aPDF As AcroPDF. It seems there's a burning issue and great confusion with the use of Adobe 7 ActiveX component. It lacks the usual OCX and the use of the DLL is somehwat a mystery. Then, there's the report that if a user upgrades to AR 7 the ActiveX used in 6 would not be functional. We appreciate our MVPs very much. Tower crane autocad drawing - software and shareware. Could the MVPs help us demystify this thing? What's the real deal with AR 7 ActiveX control and how is it implemented in VFP? Please help before some sink into the foxhole! RE: VFP Masters, Please Weigh in on this Adobe Reader 7 ActiveX Problem. Thanks, Mike. I can see the 2 files. However, the problem is 2-fold. First, The Adobe Acrobat document (AcroPDF.dll) is not visual like the previous PDF.OCX. So, a sample of how to integrate it into VFP would help. It seems to be powerful and a derivation of the old Type Library previously found only in the full installation of Adobe Acrobat. ![]() ![]() On the other hand, the Adobe Acrobat 7.0 browser is visual, but it would only allow you to embed the PDF file you open directly on the form. As far as I can tell, it wouldn't allow me to set a file to load dynamically. Second problem is that the forms I previously created with the PDF.OCX are no longer accessible to me since I upgraded to Adobe Reader 7. An OLE error is constantly thrown at me each time I try to bring up the form. Reports like the one here: and elsewhere on the web show that this is a real problem. So Mike, what is the step to use the AcroPDF.dll in VFP form? Acropdf Api ReferenceAnd is it reliable to work well on Win 98 to XP? Thanks for your help. Apata RE: VFP Masters, Please Weigh in on this Adobe Reader 7 ActiveX Problem (Programmer) 13 May 06 06:59. Public oform1 oform1=Newobject('form1') oform1.AddObject('olecontrol2','olecontrol2') oform1.olecontrol2.loadfile('c: t.pdf') oform1.Show Return Define Class form1 As Form DoCreate =.T. Caption = 'Form1' Name = 'Form1' Height = 600 Width = 800 Add Object shape1 As Shape With; Top = 12,; Left = 12,; Height = 517,; Width = 769,; SpecialEffect = 0,; Name = 'Shape1' Add Object command1 As CommandButton With; Top = 550,; Left = 600,; Height = 27,; Width = 84,; Caption = 'Load file',; Name = 'Command1' Procedure command1.Click Thisform.olecontrol2.loadfile(Getfile('PDF')) Thisform.olecontrol2.Height = 500 Thisform.olecontrol2.Width = 700 Endproc Enddefine Define Class olecontrol2 As OleControl OleClass = 'AcroPDF.PDF.1' Height = 0 Width = 0 Visible =.T. Enddefine For your second point, I believe I had suggested (in another forum) that if you were to take the version 6 OCX and copied it into your application directory and registered it there, it does not matter how many upgrades you do with the Acrobat Reader, this ocx will never be remove, so you never have to change your code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |