PrinterMonitorService.snk.pfx

Topics: Developer Forum, Guestbook / signing in, Installation / Setup, Project Management Forum, User Forum
Mar 3, 2010 at 10:49 AM

Hi Duncan, i need your help.How to compile this service.where can i get the password.I m not able to create the printmonitor database without the password can u give me the password?thank u. 

Mar 3, 2010 at 1:07 PM

Triumph

Mar 5, 2010 at 6:33 AM

Use Vb.Net 2005

Download print watch component http://www.merrioncomputing.com/Download/PrintQueueWatch.zip and add to references (Specify Path)

and compile, i dont know how to create database using the script, if u can help me on sorting out this . I have compiled all GUIs success fully and used the older database created by the setup file of trial PUMA and modified the Xonfig file accordingly but it is not working. I am able to see the print servers and can add printers, but no jobs are getting monitored

Coordinator
Mar 9, 2010 at 5:39 PM

Can you post up what you have in the service .config file?

Mar 10, 2010 at 4:03 AM

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <configSections>
      <!-- Extra custom configuration sections -->
      <section name="printerEventListeners"
               type="PrinterMonitorService.CustomConfigurationSectionReaders.PrinterEventListenersSectionReader, PrinterMonitorService" />
              
      <section name="printJobEventListeners"
               type="PrinterMonitorService.CustomConfigurationSectionReaders.PrintJobEventListenersSectionReader, PrinterMonitorService" />        
 
      <section name="monitoredPrinters"
               type="PrinterMonitorService.CustomConfigurationSectionReaders.MonitoredPrintersSectionReader, PrinterMonitorService" />        
 
      <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
         <section name="PrinterMonitorService.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
      </sectionGroup>
   </configSections>
   
    <printerEventListeners>
            
       <printerEventListener key="printerEventFileListener"
           classType="PrinterMonitorService.PrinterMonitorLogfileListener"
           commandLine="d:\Temp\PrinterEvents.log" />
       
       
       <printerEventListener key="printerEventXMLListener"
           classType="PrinterMonitorService.PrinterMonitorXMLListener"
           commandLine="c:\Temp\PrinterEvents.xml" />
        <printerEventListener key="printerEventDBListener"
           classType="PrinterMonitorService.PrinterMonitorDatabaseListener"
           commandLine="Persist Security Info=False;Integrated Security=SSPI;database=PrintMonitor;server=(local);Connect Timeout=30" />
     
    </printerEventListeners>
   
    <printJobEventListeners>
       <!-- Key = the unique name by which the listener is known,
            ClassType = the full type name of the class implementing IPrinterEventListenerBase ,
            CommandLine = startup parameters for that class
         
       -->
            
         <printJobEventListener key="printJobEventFileListener"
           classType="PrinterMonitorService.PrintJobMonitorLogfileListener"
           commandLine="d:\Temp\PrintJobEvents.log" />
           
 
        <printJobEventListener key="printJobEventXMLListener"
           classType="PrinterMonitorService.PrintJobMonitorXMLListener"
          commandLine="c:\Temp\PrintJobEvents.xml" />
       
       <printJobEventListener key="printJobEventDBListener"
           classType="PrinterMonitorService.PrintJobMonitorDatabaseListener"
           commandLine="Persist Security Info=False;Integrated Security=SSPI;database=PrintMonitor;server=(local);Connect Timeout=30" />
   
    </printJobEventListeners>
   
    <monitoredPrinters>
      <!--
        
        -->
    </monitoredPrinters>
     
    <appSettings>
      <!-- Monitor level...1=Max, 2=Min, 3=None-->
      <add key="MonitorJobEventInformationLevel" value="1"/>
      <!-- Monitor Printer Change Events? "False"=No, "True"=Yes -->
      <add key="MonitorPrinterChangeEvent" value="True"/>
      <!-- Monitor Job Added Events?  -->
      <add key="MonitorJobAddedEvent" value="True"/>
      <!-- Monitor Job Deleted Events?  -->
      <add key="MonitorDeletedEvent" value="True"/>
      <!-- Monitor Job Set Events?  -->
      <add key="MonitorJobSetEvent" value="False"/>
      <!-- Monitor Job Written Events?  -->
      <add key="MonitorJobWrittenEvent" value="True"/>
      
       <!-- ReadSettingsFromDB : If true, read the printers to be monitored from the database -->
       <add key="ReadSettingsFromDB" value="True" />
       <add key="ConnectionString" value="Persist Security Info=False;Integrated Security=SSPI;database=PrintMonitor;server=(local);Connect Timeout=30" />

      <!-- ShowIcon -->
       <add key="ShowIcon" value="True" />
     
     
    </appSettings>
   
    <system.diagnostics>
       <switches>
          <!-- Printer Monitor Component tracing : values can be
                 Off=0
                 Error=1
                 Warning=2
                 Info=3
                 Verbose=4
          -->
          <add name="PrinterMonitorComponent" value="4" />
          <add name="SpoolTCPClient" value="4" />
          <add name="SpoolSocket" value="4" />
          <add name="Application" value="4" />
       </switches>
       <trace indentsize="4">
         <listeners>
           <!-- Uncomment this section to write a trace file.  -->
           <add name="LogFileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\Temp\PrinterMonitorService.log" />
         <listeners>
       </trace>
    </system.diagnostics>
    <applicationSettings>
        <PrinterMonitorService.My.MySettings>
            <setting name="ClientId" serializeAs="String">
                <value>1f558755-c50a-4985-aa4c-f0704227ea31</value>
            </setting>
        </PrinterMonitorService.My.MySettings>
    </applicationSettings>
</configuration>

Mar 10, 2010 at 4:06 AM

Pls help me to create and installer which creates database and the application as well

Pls help me to create the database, is there any setup file

Mar 12, 2010 at 5:33 PM

Hi everyone.I have completed my work.But couldnt make the database creation automatically as i didnt find any code for it.so i manually created in using sql server as there are all the sql syntax for creating tables,procedures,views ect. If there is any code for it let me know.My last question is while running the print monitor service i get this error "impossible to run the service from the command line and it should be installed using installutil.Do anyone have idea how to do that.thank u

Coordinator
Mar 12, 2010 at 8:09 PM

Installutil.exe is an executable in the .NET framework that installs windows services.

Once you have installed it you can see the status and stop/start it using Control Panel.

 

Mar 12, 2010 at 10:33 PM

Hi Merrion.Now PUMA MANAGER,PUMA PRINTER MONITOR SERVICE,PRINTER MONITOR VIEWER ALL R WORKING WITHOUT ANY ERROR.BUT I CAN ONLY ADD THE PRINTER SERVER BUT I CANT SEE ANY PRINTER IN THE LIST.WHAT WENT WRONG. and when i compile printwatchtest i get an error on PrinterMonitorComponentMain.DeviceName = .MonitoredPrinterDevicename(0).the error is

PrinterQueueWatch.ApiException:Name of the printer not valid.

in PrinterQueueWatch.PrinterMonitorComponent.set_DeviceName(String Value)

in PrintWatchTest.PrintWatchMainForm..ctor() in C:\tmp\PrintWatchTest\PrintWatchMainForm.vb:riga 31