PDF lock after create by API

About the programming interface for the virtual PDF printer driver.

Moderator: jr

Post Reply
waxime
Posts: 3
Joined: Fri Aug 14, 2009 8:00 pm

PDF lock after create by API

Post by waxime »

I create a little application where they use BullZip API to print a report in PDF
but after first creation, the PDF is locked by the application

My Bullzip version is 6.0.659

my code
---------------------------
Dim myobject As New Bullzip.PDFPrinterSettings
myobject.SetValue("output", getFile)

With ClassSofticket.table.clsInformationEntreprises.getFirstInstance
myobject.SetValue("title", .NomEtablissement & " (" & .SiteInternet & ")")
End With

myobject.SetValue("subject", _Item.getTransactionType.Type & " (" & getCodeBarre() & ")")
myobject.SetValue("keywords", _Item.getNom(langue) & " (" & _Item.getDebut.ToString("yyyy-MM-dd") & ") " & _Item.getNomPrix(langue))

myobject.SetValue("showsettings", "never")
myobject.SetValue("showpdf", "no")
myobject.SetValue("ConfirmOverwrite", "no")

myobject.WriteSettings(True) 'writes the settings in a runonce.ini that it immediately deleted after being used.
------------------------

all pdf created have the process locked by my application, how i can unlock ???

i try with
Dim myobject As New Bullzip.PDFPrinterSettings
myobject.RemoveSettings()

but that don't work
i not see other closing method
waxime
Posts: 3
Joined: Fri Aug 14, 2009 8:00 pm

Re: PDF lock after create by API

Post by waxime »

somebody can help ???
sjohn
Posts: 1
Joined: Tue Dec 01, 2009 9:01 am

Re: PDF lock after create by API

Post by sjohn »

Hi
i've just tried to put your code into my application (asp.net using c#). It seems to work (office comes up and starts to print) - so it runs without any problems - and generates some output. but the outputfile is everytimes very small 1-3kb completely empty while the gsoutput.ps has nearly 5300kb (is there a posibility to get the ps file rendered). Do you have any suggestions where there's the rub?
Post Reply