-
Notifications
You must be signed in to change notification settings - Fork 18
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
ERROR_WRONG_CUSTOM_INFO -> TD-2120N #67
Comments
What err are you getting @MicaelMnl69 ? |
ERROR_WRONG_CUSTOM_INFO @arcadius
|
Hello @MicaelMnl69 , I do not have access to the TD-2120N, so I am not sure I can help. Maybe @TristanGodal can help? |
Assuming that the "51x26.bin" file was generated using the TD-2120N Windows Driver (if not, then that's the problem).... I would guess the problem is that the customPaperFilePath is not a FULL path to the file, since you have only specified a partial path. Assuming the file is located inside your App Documents Directory at this partial path, try prepending the app directory path. |
@MicaelMnl69 OK thanks for clarifications. What I meant by "full path" is that when your app is installed onto an iOS device, it will live inside a "sandbox" path in the iOS device file system. While your path to the paper BIN file may be at the root level of your APP, it is NOT at the root level of the device. For example, here is a path to a bin file (included inside the app bundle) that works for one of my Swift apps:
Everything before and including "MyApp.app" is the path to your app on the device. Together, it provides the "full path" to the BIN file. In Swift, there are methods available to get this path. For a Bundle Resource, I use this one:
For the app documents folder, you may do something like this (in Swift): I suspect Capacitor provides similar APIs to get these paths. Anyway, I cannot say with certainty that the "relative path" you are using will fail in a Cordova/Capacitor app. It depends on whether Capacitor does something in the compiler to resolve your partial path into the full path that the SDK requires. |
Yes I thought that too before but there the user copy file into capacitor sandbox (https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer/pull/46/files#diff-902704a5811b4169ac0309a24c3e7c09c9099b9f0613e3e3ae34f9cf00d38981R597) Even if it was a path error I should get this error? |
Hello, i'dont know why it still doesn't work i have read this PR(#46) and this issue (#45) i have add a customPaperFilePath to my printer obj like that without success (I have the same label printer TD-2120N)
logs
Thanks
The text was updated successfully, but these errors were encountered: