[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

How to use TOPOSPOSPrinter - Delphi

Asked by PEGGY in Delphi Printing, Delphi Components

Tags: OPOS, Delphi

Hi,

I am trying to print on a receipt printer using OPOS, but am facing a few issues. To begin with, I have installed the SetupPos application from the Epson site and am able to successfully print using the 'CheckHealth Interactive' option. I have then imported the OPOSPOSPrinter.ocx in Delphi and this resulted in the TOPOSPOSPrinter component getting added to the 'ActiveX' pallete in my Delphi IDE. I have then created a new application and dropped this component on the form, and on a button click event wrote the below code.
procedure TForm1.Button1Click(Sender: TObject);
begin
try
  Oposposprinter1.Open('TestPrinter'); //LDN for receipt printer
  Oposposprinter1.ClaimDevice(1000);
  Oposposprinter1.DeviceEnabled := True;
  Oposposprinter1.PrintNormal(PTR_S_RECEIPT,WideString('Hello - Testing POS printer'));
finally
  Oposposprinter1.DeviceEnabled := False;
  Oposposprinter1.ReleaseDevice;
  Oposposprinter1.Close;
end;

Whle compiling this simple application, I get an "Undeclared Identifier: 'PTR_S_RECEIPT'" error at the line Oposposprinter1.PrintNormal(PTR_S_RECEIPT,WideString('Hello - Testing POS printer')); in the code. Is there something that I am missing in the way the ocx should have been installed? I am not sure how the PTR_S_RECEIPT constant should be used. Should the PTR_S_RECEIPT be explicitly declared in my application or is there any constants file that I should be adding in my uses clause?

Appreciate any help.
Regards
P




[+][-]10/12/09 10:03 AM, ID: 25552883Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Delphi Printing, Delphi Components
Tags: OPOS, Delphi
Sign Up Now!
Solution Provided By: epasquier
Participating Experts: 1
Solution Grade: A
 
[+][-]10/12/09 10:07 AM, ID: 25552913Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/15/09 05:42 AM, ID: 25579880Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625