Page 1 of 1

PDF lock after create by API

Posted: Tue Sep 08, 2009 3:54 pm
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

Re: PDF lock after create by API

Posted: Fri Sep 18, 2009 7:31 pm
by waxime
somebody can help ???

Re: PDF lock after create by API

Posted: Wed Dec 02, 2009 11:34 am
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?