PDF lock after create by API

About the programming interface for the virtual PDF printer driver.

Moderator: jr

PDF lock after create by API

Postby waxime » Tue Sep 08, 2009 3:54 pm

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

Postby waxime » Fri Sep 18, 2009 7:31 pm

somebody can help ???
waxime
 
Posts: 3
Joined: Fri Aug 14, 2009 8:00 pm

Re: PDF lock after create by API

Postby sjohn » Wed Dec 02, 2009 11:34 am

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?
sjohn
 
Posts: 1
Joined: Tue Dec 01, 2009 9:01 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest