Aloaha Print URL Sample
With Aloaha it is possible to load a PDF document directly from an URL and print a hardcopy to a printer.
Please see the sample below:
Dim pdf
Dim URL
Dim Printer
Dim StartPage
Dim EndPage
Dim PageScaling
Dim AutoRotate
Dim SpoolerTitle
Set pdf = CreateObject("aloahapdf.edit")
URL = "http:\\www.yourdomain.tld\test.pdf"
SpoolerTitle = "Test.pdf"
Printer = "HP500"
StartPage = 1
EndPage = 999
PageScaling = 1
AutoRotate = true
If pdf.load_pdf_to_mem(cstr(URL)) = True Then
If pdf.print_pdf(cstr(""), cstr(printer), clng(Startpage), clng(Endpage), clng(PageScaling), cbool(AutoRotate), cstr(SpoolerTitle)) = True Then
MsgBox "OK"
End If
call unload_pdf_from_mem
End If
Set pdf = Nothing
Please ask...
Although we really tried hard, there are always questions left open.
Please send us your question.
We would be glad to answer it.