PrinterCE SDK, i do not get anything at all

Pagesot

Member
Licensed User
Longtime User
: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.

Thanks & Regards.
 

agraham

Expert
Licensed User
Longtime User
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.
 

Pagesot

Member
Licensed User
Longtime User
PrinterCE...

: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 ...
 

agraham

Expert
Licensed User
Longtime User
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.
 

Pagesot

Member
Licensed User
Longtime User
PrinterCE...

: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 ...

Greetings and Thanks
 

Pagesot

Member
Licensed User
Longtime User
PrinterCE...

: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
 

agraham

Expert
Licensed User
Longtime User
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.
 

Attachments

  • Capture.jpg
    Capture.jpg
    27.9 KB · Views: 259
  • pce.sbp
    502 bytes · Views: 232

Pagesot

Member
Licensed User
Longtime User
PrinterCE...

:sign0148: Hello again agaham

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.

Greetings
Jordi
 

Pagesot

Member
Licensed User
Longtime User
PrinterCE...

:sign0060: Hello again, I've managed to keep under control PrinterCE.

Thanks for everything and greetings.

Pagesot
 

pdabasic

Active Member
Licensed User
Hello Pagesot!

Congratulation! Please tell me how you can do it, because I try to this many time ago

Thx PdaBasic

:sign0060: Hello again, I've managed to keep under control PrinterCE.

Thanks for everything and greetings.

Pagesot
 
Top