Could someone help me?
I wish to use servoy with fiscal printers fp81 . I downloaded and installed drivers, but the printer is not seen in the printers panel (windows). I asked to the epson seller and he told me that it is a virtual driver. We intend to use 8 Servoy licenses for 8 fiscal printers of different users. Does a solution exist to the urgent problem?
Tanks in advance.
Gianni Pinna
Gianni
Does the printer show in your printers in windows?
This little program lists the available printers, we use similar code in Servoy, can you try it?
save to PrintTest.java
javac PrintTest.java
java PrintTest
Rob
import javax.print.DocFlavor;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
public class PrintTest
{
public static void main(String[] args)
{
DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, pras);
if (services == null || services.length == 0)
{
System.out.println("No printers available");
}
else
{
System.out.println("Available printers:");
for (int i = 0; i < services.length; i++)
{
System.out.println("[" + (i + 1) + "] " + services[i]);
}
}
}
}
No, the printer fp81 is not visible in windows’s printers.
How can we use this printer from Servoy’s statements ?
Thanks.
If your printer is not visible in the list of printers in your windows XP/Vista printers list, it will also not show up in other applications (like Servoy).
I would expect it is also not visible in other apps like word processors, etc.
Rob
The installed printer fp81 work with a virtual serial port (for example COM8:) for the comunications printer-to-pc and pc-to-printer.
In Servoy, we can manage these comunications by virtual serial ports ?
Thanks.