:sign0148:Hello everyone. Anyone know if there is any sample code on PrinterCE Basic4ppc SDK?. Enough with how to register the library and how to add or create the object in your application. I made a thousand attempts and I can not create object.
Do you mean the Field Software PrinterCE SDK? If so you would need to use PrinterCE.NetCF SDK to work with Basic4ppc.
Often a wrapper library would be needed to use a third party .NET dll with Basic4ppc as such assemblies often use their own internally defined classes for parameters and returns and Basic4ppc cannot handle these. However I have downloaded and looked at PrinterCE.NetCF.dll with Reflector and it looks like it might mostly work if added directly to Basic4ppc as a component although I haven't tried it.
:sign0148:Sure, you can add tools> components ... but below we approach the option to add object, this appears not enabled ... So far I've tried to add (together and separately) the two libraries (PrCE_NetCF.dll and PrinterCE.NetCF.dll) and I have not accomplished anything ...
You only need to add PrinterCE.NetCF.dll but you need to add it to both desktop and device, even though it will not work on the desktop, because Basic4ppc assumes that the device dlls have the same structure as the desktop and so only looks at the desktop dlls in the IDE. I have just added the PrinterCE.NetCF.dll as a component and added a PrinterCE object with no problems.
:sign0013:Agraham Hi, I just found the reason ... seeing that the library is only useful on the device I added the component only in the column device and (I guess because he did from the desktop) did not appear illuminated the option to add object, add the component from the option either (device and desktop at a time) and I have the option enabled and I can add the object to start working ...
:BangHead:Sorry agraham... but I still get nothing:
Among the many items I can add are PrinterCE, PrinterCE_DLL and PrinterCE_Base. Only if I add PrinterCE_DLL as PrinterCE to reach me PrinterCE.New1 line returns a MessageBox which reads 'Constructor - PrinterCE_DLL' ... and not get anything else
The dll is not intended to be used with Basic4ppc but it might, or might not work. Also the native code dll will probably not be recognised on the desktop so you might have to do all the development on the device.
The attached program works on the device both when compiled and in the device IDE using PrinterCE.NetCF.dll and PrCE_NetCF.dll for "ARM-WM6/WM5/2003" from the link I gave earlier.
Sorry but I can't help much further, you will have to work the rest out for yourself.
I have done numerous tests and I only get this the same window to you, but when I tell it to use a particular printer by bluetooth the compiler returns me an error in the call to that function and I can not even create the executable ... I can send a string or an image (.. haha .. But I can not tell you where to send it.!)
I appreciate the help but as it finds a way to send a text and an image to a printer device ... I shall leave the actual IDE.