We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bug Report - PDFViewerControl and System Currency Settings

Thread ID:





128041 Dec 28,2016 01:36 PM UTC Jan 4,2017 12:30 PM UTC WinForms 1
Tags: PdfViewer
Thaddeus Ball
Asked On December 28, 2016 01:36 PM UTC

If I use an instanced PDFViewerControl in code and print via PrintDialog, it resets the system currency settings for FormatCurrency() replacing the $ with a ¤.

On that note, I am unable to print with said instanced control. I have to use the PrintDialog. I can print directly if I use a control on a form.

I've attached a demo application that shows the bug in action. I'm also putting the code here though whoever looks at this will need to make the corresponding form.

I'm also not including the SyncFusion DLL files. I am including a test pdf.

Public Class Form1
    Private Sub cmdShowCurrency_Click(sender As Object, e As EventArgs) Handles cmdShowCurrency.Click
        txtShowCurrency.Text = FormatCurrency(1.25)
    End Sub
    Private Sub cmdOpenFile_Click(sender As Object, e As EventArgs) Handles cmdOpenFile.Click
        Dim OpenPDF As New Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl
        If chkPrintWithoutPrintDialog.Checked Then
            Dim dialog As New PrintDialog()
            dialog.AllowPrintToFile = True
            dialog.Document = OpenPDF.PrintDocument
        End If
    End Sub
End Class

Attachment: SystemCurrencyResetBug_8b65dda0.7z

Aravinth Sampath [Syncfusion]
Replied On January 4, 2017 12:30 PM UTC

Hi Thaddeus, 

A support incident to track the status of reported issue “While using PDFViewerControl in code and print via PrintDialog, it resets the system currency settings for FormatCurrency() replacing the $ with a ¤ and “Unable to print with PdfViewer control”,  has been created under your account. Please log on to our support website to check for further updates.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon