I dont know what the ole code means, (Maybe someone with a bit more experience with these things might know )
but these things are case sensitive.
opdf = createobject("build.fytek.PDF")
what happens from the command line. ?
also, do you have the program registared ? that usually happens when you install it, but just in case, you might check that it actually got registartd.
Bob
>Thanks, but I tried it, I create the object without problems but when I try to use any of the methods VFP says 'Ole error code 0x00000001: Incorrect function. I'm typing the methds names correctly, any ideas??? I also tried changing _VFP.Autoyield and Sys(2333)
>
>Luis
>
>
>
>
>
>>Sure,
>>here is snip of code I currently use.
>>
>>IF VARTYPE(opdf)# "0"
>>RELEASE opdf
>> opdf=.null.
>> opdf = createobject("build.fytek.PDF")
>>ENDIF
>>oPDF.setInFile()
>>oPDF.setOutFile()
>>opdf.setkeepbreaks("1")
>>oPDF.setInFile("projrpt.txt")
>>oPDF.setOutFile("projrpt.pdf")
>>oPDF.buildFytekPDF()
>>release opdf
>>
>>I found some of these functions using intellsense in vfp7 from the command line.
>>
>>I hope this works for you.
>>Bob Lee
>>
>>
>>Can you give me some code?? I installed it, followed the samples but I can't make it work, when I use:
>>>
>>>oPDF.SetOutfile( "c:\mypdf.pdf")
>>>
>>>it give me an Ole error, do you know how to solve it?
>>>
>>>TIA
>>>
>>>Luis
>>>
>>>
>>>>Good morning Sergey
>>>>Eveyone has favorite PDF processor these days, this one is mine.
>>>>
http://www.fytek.com/>>>>
>>>>The free version,(text to pdf converter) allows for converting text only reports to pdf files, with a few fonts - and sizes, and jpg graphics.
>>>>Its quite good if you like writing your reports by hand, the old fashiond way. (thats what I do)
>>>>
>>>>Take a look at the pdf file creater, you can write a simple text type file, and generate all sorts of graphs from the data. (they have a web demo) so you can see whats really going on.
>>>>
>>>>Bob Lee
In the beginning, there was a command prompt, and all was well.