Whats The Point Of PDF Creator?
Hi all,
This may be contentious but what the heck.
I posted a request in the Help forum to try to find out a definitive, robust solution to the problem of PDFCreator hanging when cClose is executed ie one which does not rely on putting "wait" statements all over your code and hoping. I have tried everything I could think of but to no avail. There seem to be many instances of other people reporting the same issue from several versions ago but the problem still doesnt appear to be solved in the latest version (0.9.5).
If the product cant be used without hanging and there is no clear solution, whats the point of continuing distributing new versions without first fixing that?
If this cant be solved does anyone know of an alternative free solution which will work with VB macros?
Hello
I used PDFcreator for creating PDF from Excel through VB 6.0 code.Windows XP and PDFCreator 0.9.3 works fine using sleep functions, but PDFCreator version 0.9.5 freeze on .cClose function
PDFCreator1.cClose
and not possible to close my application also , since it shows message "PDFCreator not responding...." only way to use Ctrl+Alt+Del and close instance of PDFCreator
But now it solved. I closed PDFcreator through code as follows
Set PDFCreator1 = Nothing
On Error Resume Next
CloseAPP "PDFCreator.exe", True, False
CloseAPP function follows (I put in Module)
Function CloseAPP(AppNameOfExe As String, Optional KillAll As Boolean = False, Optional NeedYesNo As Boolean = True) As Boolean
Dim oProcList As Object
Dim oWMI As Object
Dim oProc As Object
CloseAPP = False
Set oWMI = GetObject("winmgmts:")
If IsNull(oWMI) = False Then
Set oProcList = oWMI.InstancesOf("win32_process")
For Each oProc In oProcList
If UCase(oProc.Name) = UCase(AppNameOfExe) Then
If NeedYesNo Then
If MsgBox("Kill " & oProc.Name & vbNewLine & "Are you sure?", vbYesNo + vbCritical) = vbYes Then
oProc.Terminate (0)
CloseAPP = True
End If
Else
oProc.Terminate (0)
CloseAPP = True
End If
If Not KillAll And CloseAPP Then
Exit For
End If
End If
Next
Else
End If
Set oProcList = Nothing
Set oWMI = Nothing
End Function
For Vista, Version 0.9.5 works ok, but I have to run PDFCreator before run my application and autosave to particular directory not working(It opens dialog and manually select directory)