iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,We have a problem with printing documents using UXDocumentViewer when document elements are binding to ViewModel.When fixed document content is static and located in xaml file, document is printing properly, but if document content is binding to ViewModel, document is displayed correctly in UXDocumentViewer but printing not working correctly. Printed document does not contain elements that are binding to ViewModel. They are omitted on the printout.I attached simple picture, that shows this problem and attached simple working sample so that you can replicate this issue. Ths sapmle is based on your documentation samples. I only added class: InvoiceDocumentViewModel with property: Title and binding it to view: InvoiceDocument.xaml.This problem is very important to us because we can't complete the reports module in our project wchich are currently working on.So I ask for quick help in solving this problem.Regards,Krzysztof
Hi Krzysztof,
Your sample is working well so far and there's no issue currently. Printed document does not contain elements which are binding to ViewModel because you are missing to bind DataContext property in FixedPage to StaticResource InvoiceDocumentViewModel. Please replace this snippet code to FixedPage tag your sample.
<Intersoft:FixedPage Width="628" Height="895" DataContext="{StaticResource InvoiceDocumentViewModel}">
Hope this helps.Riendy
Your sample is very helpful for me to replicate your issue here. The issue appears when bound a data from view model to view. I have forwarded this issue to our development team for further investigation. I will let you know for any updates from them.Thank you.Riendy
I used this technique to load data into a TextBox inside a page. It will load fine but if I try to open the UXDialogBox containing the UXDocumentViewer a second time, the document viewer only shows the original content and not the bound data. In the debugger I inspected the content of the the TextBox and it contains the value from the first call but the viewer does not reflect any changes. Somewhere the viewer is holding on to the first update contents and does not release them and at the same time, does not reflect the true data. Looks like some caching issue somewhere, either with the parent UXDialogBox or in the UXDocumentViewer control.
Found the issue. It is related to when the async update actually refreshes the view and the viewmodel remaining in memory. All is well now. But, I wish there was a way to collapse some of the buttons on the menu bar, etc.
Hello,
You can try to Edit template ('Edit Copy') in UXDocumentViewer. Search for UxToolBar. Then, you can set visibility 'Collapsed' to the button.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname