how to print acrobat .pdf files from vb.net?
hi,
iam involved in a project which is used to order processing.i have been given a task for opening the pdf files,printing a set(batch if pdf files) automatically without user intervention.
This type of system is been done in visual foxpro.but its been migrtated to vb.net.
so its takes a lot **** of time to me to understand the existing foxpro code and do it in vb.net.
i will tell the process.first a user selects a batch of orders.
each order contains a set of docuemnts
once the user selects the batch of orders and says print,its should take each item in the order,(all are having the path in the database),print the pdf file.
the minimum requirement is we should have the adobe acrobat.
how to access the acrobat from vb.net,so tha i can print passing the filename,start page,end page like that .how to instantiate and how to use its functionality...
can some body help me in this regard....
regards
varma
which adobe component to use?
hi,
thanks for the reply,
could you tell me which adobe component to use...
bcos there are lot of components is there in references....
regards
varma
how to open the file with adobe type library?
hi,
yaa i got the solution for referencing the adobe type library from vb.net.
now i got a big problem,how i should use this component to open a pdf file and print with out viewing it.
i used the following code to open
Dim opDOC As Acrobat.CAcroAVDoc
Dim ok As Integer
Try
ok = opDOC.Open("D:\Varma\Using DataReader.pdf", "TEST")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
but its giving a error,it is
"object reference not set to instance of an object"
so how should i create the instance.
after that how i should print the pdf file in sleep mode..
if adobe is not installed or pdf files are not there how i should catch and prompt the user..
please help me..
regards
varma