Not show Toolbar at all

Winform on Core 9.0 simple drop control to form, load doc properly, but there is no Toolsbar?


//

// pdfV
//
pdfV.AutoScroll = true;
pdfV.BackColor = Color.FromArgb(237, 237, 237);
pdfV.BorderStyle = BorderStyle.FixedSingle;
pdfV.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool;
pdfV.Dock = DockStyle.Fill;
pdfV.EnableContextMenu = true;
pdfV.HorizontalScrollOffset = 0;
pdfV.IsTextSearchEnabled = true;
pdfV.IsTextSelectionEnabled = true;
pdfV.Location = new Point(0, 0);
messageBoxSettings1.EnableNotification = true;
pdfV.MessageBoxSettings = messageBoxSettings1;
pdfV.MinimumZoomPercentage = 50;
pdfV.Name = "pdfV";
pdfV.PageBorderThickness = 1;
pdfViewerPrinterSettings1.Copies = 1;
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings1.PrintLocation = (PointF)resources.GetObject("pdfViewerPrinterSettings1.PrintLocation");
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
pdfV.PrinterSettings = pdfViewerPrinterSettings1;
pdfV.ReferencePath = null;
pdfV.RightToLeft = RightToLeft.Yes;
pdfV.ScrollDisplacementValue = 0;
pdfV.ShowHorizontalScrollBar = true;
pdfV.ShowVerticalScrollBar = true;
pdfV.Size = new Size(949, 632);
pdfV.SpaceBetweenPages = 8;
pdfV.TabIndex = 0;
textSearchSettings1.CurrentInstanceColor = Color.FromArgb(127, 255, 171, 64);
textSearchSettings1.HighlightAllInstance = true;
textSearchSettings1.OtherInstanceColor = Color.FromArgb(127, 254, 255, 0);
pdfV.TextSearchSettings = textSearchSettings1;
pdfV.ThemeName = "Office2016Colorful";
pdfV.VerticalScrollOffset = 0;
pdfV.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Office2016Colorful;
pdfV.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default;





3 Replies

YM Yathavakrishnan Mohan Syncfusion Team March 24, 2025 11:23 AM UTC

According to the provided information, the properties AutoScroll and BorderStyle are only available in the PDFDocumentView control. So, we suspect that you have dragged the PdfDocumentview control instead of PdfViewer Control. When we drag and drop the PdfDocumentView control into our WinForms application, it only allows us to view the Pdf file and it will remove the built-in toolbar. Please drag and drop the PdfViewerControl into your WinForms application to utilize the toolbar functionalities. For more details, please refer to the User Guide and the provided screenshots.

 

 

Additionally We have created a sample for the same and attached below for your reference.

 

UG Link :Viewing PDF Files in WPF Pdf Viewer control | Syncfusion<sup>®</sup>;


Attachment: Winforms_Sample_af1bbea4.zip


MC Matanya Cohen March 24, 2025 05:54 PM UTC

Ohh.. I see. Please send me some ref to understand What stand for: PdfDocumentView ? (For what needed? also why the Control version appeared under  PdfDocumentView  in ToolsBox)

Thanks



YM Yathavakrishnan Mohan Syncfusion Team March 25, 2025 01:41 PM UTC

The PdfDocumentView control allows you to view the PDF files without toolbar using the Load methods from code behind. PdfDocumentView is lightweight and useful when the user needs only to view the document, extract text, or export images from the code-behind, as it does not initialize UI elements.


Loader.
Up arrow icon