How do i add in printParamsXml? #16
Answered
by
brianedelman
brianedelman
asked this question in
Q&A
-
All my printParamsXml attempts have been failing.
The above works fine, but when I add to printParamsXml it fails. I have tried an object and also Probably missing something obvious |
Beta Was this translation helpful? Give feedback.
Answered by
brianedelman
Sep 22, 2021
Replies: 2 comments 2 replies
-
Hi there! Can you try this example?: import {dymoRequestBuilder} from "react-dymo-hooks";
const params = {
data: `printerName=${encodeURIComponent(printerSelected)}&printParamsXml=&labelXml=${encodeURIComponent(
xml
)}&labelSetXml=`,
};
function handlePrintLabel() {
dymoRequestBuilder({
method: "POST",
wsAction: "printLabel",
axiosOtherParams: params,
})
.then(() => {})
.catch(() => {});
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
Here's the answer for posterity
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brianedelman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the answer for posterity