Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7182457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:46:28+00:00 2026-05-28T17:46:28+00:00

This is a big-picture question… but I also have details on the problem I

  • 0

This is a big-picture question… but I also have details on the problem I am experiencing after attemping to use POS. I have been googling for a couple of days… and I must say, I am having a hard time sorting thsi out.

So, I need to print a simple receipt to my EPSON-TM-T88V thermal POS printer with VB.NET 2010 on XP (eventually to run on Windows embedded POSReady) via USB.

All I need to print is some text and a logo. I have my logo stored on the printer. So, I need to use Epson’s ESC/POS commands.

So, does it make sense to use Microsoft.PointOfService? Seems like a lot to go through to send some escape sequences to a printer!

Apparently, the PointOfService system has not been updated to work seemlessly with VB.net 2010 (details below) That is why I wonder if I am taking the wrong path.

========================

IF this is the right path…here is what I did and where I am stuck.

For people trying to us the PointOfService classes in VB 2010:
First you need to download and install the POS.net (Microsoft.PointOfService) – free download MS. Then you need to add references in your vb.net project. When you try to run it, you will probably get an error something like this:

{“This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.”}
There are links all over on how to fix this… you need to fix your config files. Here is one of them:
http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/thread/9b3e6f34-de26-4a36-ab8e-13722f53b9e4/
For 2010, apparently you need to fix in QTagent32.exe.config and QTAgent.exe.config.

OK, so I did all this. BUT The CAS policy error came up again, with a different stack tace way after I applied the recommended fixes.
on the first call into the system I get the CAS error….

at Microsoft.PointOfService.Management.Explorer.CreateExplorer()
   at Microsoft.PointOfService.PosExplorer.LoadExplorer()
   at Microsoft.PointOfService.PosExplorer.Initialize()
   at Microsoft.PointOfService.PosExplorer..ctor()

Any further ideas?
Thank you 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:46:29+00:00Added an answer on May 28, 2026 at 5:46 pm

    I do not need to use the whole POS package just to print to a POS printer. Instead, just write bytes directly to the printer. This worked for VB.net 4.0 with the Epson POS/ESC escape sequences.

    Here are instructions:
    http://support.microsoft.com/kb/322090

    Basically, I used the rawprinterhelper class. Then you can send the escape sequences directly.

    I did get a PInvokeStackImbalance error. The rawprinterhelper needs this one change to work. The code needs to look like this (the pd parameter is integer instead of long):

    <DllImport("winspool.Drv", EntryPoint:="OpenPrinterW", _
          SetLastError:=True, CharSet:=CharSet.Unicode, _
           ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
       Public Shared Function OpenPrinter(ByVal src As String, ByRef hPrinter As  intPtr, ByVal pd As Integer) As Boolean
      End Function
    

    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/13fce4f7-e779-4ce1-b421-1de6007595fe/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You will suppose this is a big question.but there might be a simple problem
I have this big doubt. When ever i use base64Binary in an .xsd schema
This is a great big mess... I know I could use an iframe, but
Hi this question or problem i have its very hard i have search and
I have a question regarding some JavaScript, there is a big picture and the
This is a big question, that I don't know how to start, so I
Not sure if this is a big deal. But wondering why when the site
This is not a big deal, but is there any way in F# to
This isn't that big of a deal but I was wondering if it can
Ok so here's the big picture, I have 2 sites, call them SiteA and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.