Simulate printing for ePOS-print iOS sdk - ios

I am using epos sdks for printing in my app. I don't have printer to check the exact output of the printed bill. So is there any way to simulate the output without printer by using epos iOS SDK?

Please download the sdks from the following location https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=4768&scat=50&pcat=7
1. Unzip the downloaded file(if it not done automatically) and go to the javascript folder.
2. Unzip "ePOS-Print_Sample_SDK_V5.0.1E" and check for the folder "editor".
3. Open the folder and right click on the 'index.html' file and open it using any browser.
4. Use the edit to enter the input and check the output in preview tab.

You can use EPSON's ePOS XML Editor. I've published the source code for it in a public repo and added a Github Page so it's easier to find and use.
You can find it here: https://franciscohanna.me/epson-epos-xml-editor/.
In the editor, you can drag and drop elements and use the Preview tab to have an approximate preview of the print.

Related

Is it possible to autoformat source code using Clang?

Is it possible to autoformat translation unit (source code) using Clang C API? I'm able to parse translation unit, but i can't find any according method for my goal.
They have made a nice tool for formatting source code already - Have a look at:
$YOUR_LLVM_DIR/clang/tools/clang-format/ClangFormat.cpp
For Xcode users:
Download and install Package Manager here: http://alcatraz.io
Install ClangFormat by clicking on the icon to the left of it.
In the Edit>Clang Format menu, select Enable Format on Save
Now your files will be automatically formatted as you save.

Editing files contained in iPad app directly from PC without jailbreaking the iPad

I have some CSS in my hybrid iPad app files that I would like to edit. I came across iFunBox and iExplore, which allows me to move the file between iOS and macOS. But I cannot edit the files directly. I am doing the following:
Open and Edit the file in TextWrangler by clicking on the file in iFunBox UI
Reveal the file in finder
Copy the file to iPad by dragging it to iFunbox
It appears that it should be easy iFunBox or similar to automate this process and hance make the file editable directly.
Anyone aware of an app which achieves this?
Attached is a screenshot of my cluttered Desktop, showing the iExplore, TextWrangler and Finder window. Ideally, I would like to see an Edit option alongwith Open and Quick Look options.
Wait, do you just want to be able to edit files via FTP? If so use, Gusto

How i can generate QR Code using my iPhone/iPad Application?

I have some information like Name,company Name,Company Url,etc using this information i want to generate QR code for that so is there any free api is available for that or is there any way to generate QR code for this purpose?
There are several ways to do that. I have placed one of the example in this answer.
For This answer we are using QR code of 200 x 200 size. for more details see here.
QR code Google API below
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:
Example:
URL encoded:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG%3AArchitect+Of+The+Capitol%2CN%3ABarack+Obama%2CTEL%3A%28202%29+224-3121%2CADR%3A1331+F+St+NW+%23+SB15+Washington%2C+DC+20004-1107%2CEMAIL%3Awww.firstgov.gov
Normal URL:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG:Walmart Stores Inc,N:Mike Duke,TEL:(479) 273-4000,ADR:702 SW 8TH ST BENTONVILLE, AR 72712-6209,EMAIL:www.walmartstores.com
Refer to this project wraping c code for iPhone:
https://github.com/kuapay/iOS-QR-Code-Generator
Just couple of steps & you are done :
1) Attach the libz.dylib library to your target in Xcode.
2) Drag the QRDraw and libpng folder files into your project.
3) Update the Header Search path under build settings menu.
Hope this is enough for integration within your app.

Barcode scanner in zxing example

Is anyone able to tell me where i might be able to find an example of the barcode scanner 'zxing'?. Also i have found the following link : http://zxing.googlecode.com/svn/trunk/iphone/ but i'm not sure on how to download the whole iphone directory
Download the whole archive.
Open the folder and find the example project in iPhone\ScanTest folder

How to create ListField containing image and multilnes text in a row -- blackberry

I want to create ListField .In each row of Field i want to display image on the Right and text on the left.I am using the ListField and callback.The text and image is getting displayed but the text is overwriting on the image and also if i change the order i.e image on left and text on the right then the text is getting truncated and only a single line is coming where as the text is of multiple lines .So anyone could you please give an idea of how to proceed or way to do
thank you
Which OS version are you using? If you are using OS6 or higher, consider using a TableView(and associated TableModel and TableController) . Its DataTemplate feature allows you more control over the layout of each row.
If you still want to use a ListField then you should show the code you are having trouble with.
Check out the BlackBerry Advanced UI components here: http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-managers/ta-p/488276
In particular check the ListStyleButtonField example.
Zip file containing Example BlackBerry Project:
http://supportforums.blackberry.com/rim/attachments/rim/java_dev#tkb/399/4/Advanced%20UI.zip
Once downloaded, do the following:
Extract the Advanced UI folder to your local machine
Open Eclipse and goto File->Import->Existing Project into workspace
Choose the Advanced UI folder as the root folder
The Advanced UI project will then be imported into Eclipse and you should be able to build and run the sample application on the BlackBerry simulator. Once you see how ListStyleButtonField works you can copy it into your project, or modify it to your specific requirements.
Note that you may have to set your compiler compliance level to 1.3 to get this working. Do this under Project Settings->Java Compiler

Resources