WebView2 PDF get current page - winforms

I just can find the way to get a PDF current page number displayed in a WebView2 (C# Winform .Net 6 project).
I have search in Microsoft site and on the web and didn't find any information regarding that specific point.
Anyone?

Related

Aspose PDF viewer

I am using the Aspose PDF tools and have successfully got it to print the pdf which is great, but ideally I want to be able to add a wpf control to display this as well.
I would have assumed that the PdfViewer class would have something, but I can't tell.
So far I have needed to use a different control MoonPdfPanel which is annoying as I would have preferred 1 tool to do both jobs.
Does anyone know of a control I can use to hook into the aspose?
Thanks
We have developed an HTML5 PDF Editor application using Aspose.Pdf for .NET API which you can use in your application as a PDF Viewer as well. You can get the details and complete source code here. You can use the source code to edit the viewer as per your requirement.
P.S. I am working as social media developer at Aspose.
Well, if you are interesting in viewing the PDF file, you may convert the file to HTML and display it using an IFrame in your application. I have developed a sample application which performs different operations including viewing a PDF file in IFrame. Download it and try it at your end. Another option is that you can convert the PDF file to images and display in Imageviewer in your application (Code is available in the above application).
P.S. I am working as social media developer at Aspose.

What is the best way to make a full page Silverlight web part in SharePoint 2010

I want to make a silverlight web part hosted in SharePoint 2010 that will take up the entire screen. I know how to get rid of all the SharePoint navigation through CSS or a custom master page, but I'm struggling with how to get a web part zone to grow to the full height available. I've messed around with using CSS or jquery to set the heights of the various tables and divs that wrap a web part and haven't found a good solution. Has anyone done this?
How about not using a webpart, and just embedding the Silverlight application into an empty page with an empty masterpage?
You can grab the html or aspx page that Visual Studio generates when you create an new Silverlight project.
I would suggest you to get a new master page for this purpose. You can get the minimal master page here:
http://blog.drisgill.com/2009/11/starter-master-pages-for-sharepoint.html

Using Crystal reports with Silverlight 4

I am using Silverlight to design my web application and want to server up PDF reports to customers. Currently i am using a indirect way of creating the reports by opening a ASPX page in a popup, the popup contains the Crystal Reports viewer that generates the report in a PDF that is then displayed to the client. I want to invoke the crystal reports file from within my Silverlight application. Is this possible ? If so how can i do this ?
Kind Regards,
Silverlight does not have a report viewer control for Crystal reports. However, there are two options:
Launch another browser window from Silverlight and open the report in new ASPX page (what you did), or
Embed a new web page that hosts report viewer control inside the web page that hosts Silverlight application.

TestPage.aspx in silverlight

I am a beginner in silverlight. I want to know what is TestPage.aspx and TestPage.html in silverlight. Actually i have google it but din't get enough information. Can any one give me answer??
TestPage.aspx and TestPage.html are the pages which will host your Silverlight content. As you might know, Silverlight is just a project (not a web application) and needs a page that can host it.
These pages are created by default and help you to test your XAML content during your development, which you can later remove from your project.
TestPage.html is dynamically generated by the Silverlight application as part of the Debug process. If you take a look at the Debug tab for the application properties you will see an option to Dynamically generate a test page. If this is selected then you TestPage.html is created in the /Bin/Debug folder of your Silverlight application.
A better solution is to create a web application in the same solution as your Silverlight application then in the properties for the web application go to the Silverlight Applications tab and add your existing Silverlight app to the web project. Also make sure that the Silverlight checkbox is ticked in the Debuggers section of the Web tab of your web application.

Create a Mobile Web User Control

I am making mobile web pages to be accessed by smartphones and such.
I do not see either Mobile Web Form, or Mobile Web User Control in the list of installed templates in Visual Studio.
I probably need some mobile toolkit or something like that, but I can never find what I am looking for on MSDN. Anyone know what I need to do?
Try downloading the Mobile Web Application Template for Visual Studio.
Source: http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx

Resources