Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can pass byte data to print content #9

Open
gurjeet421 opened this issue Apr 17, 2024 · 2 comments
Open

How I can pass byte data to print content #9

gurjeet421 opened this issue Apr 17, 2024 · 2 comments

Comments

@gurjeet421
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@FrenkyDema
Copy link
Owner

@gurjeet421 please describe the issue with more details

@gurjeet421
Copy link
Author

Hi , below is the sample byte code

                             oldText = objCitaqPrint.setWH('4');
                            System.arraycopy(oldText, 0, printText, iNum, oldText.length);
                            iNum += oldText.length;

                            oldText = objCitaqPrint.setBold(true);
                            System.arraycopy(oldText, 0, printText, iNum, oldText.length);
                            iNum += oldText.length;
                            oldText = objCitaqPrint.getGbk("Hello World \n");
                            System.arraycopy(oldText, 0, printText, iNum, oldText.length);
                            iNum += oldText.length;
                            
And this is how I pass data to cloud printer , printer is connected but it did not print anything 

Passing data to printer to print:   cloudPrinter.appendRawData(printText);                            

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants