Archive for the ‘C#’ Category

PDF Conversion Services & Engines Vendor List

I had to evalualte a  few commerical PDF conversion engines some time back for a project. Basically Microsoft Word and other Office formats where required to be converted for futher processing for a solution for a paperless office project. One of the requirements was to support proper Right to Left (RTL) support (Arabic etc) and it could be automated and have API access for embedding.

Below is a list of vendor, note that the approach taken by the vendors are diffrenet in some cases and you need to consider these when it comes to your solutions options and how the jell.




CefSharp Example WPF Getting Started

08/11/2014 1 comment

Q1. What is CefSharp?

Ans: .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

CefSharp would be preferable over Awesomium considering the implications of getting the
wrapper to work with x64 which would definitely be a challenge (You may have code it all
in your home time since you may not be able to at work,so consider how you are going
to balance home and work,yes sarcasm)

Q2. Where are the CefSharp binaries  for Microsoft dot net(.NET) ?

Ans: Currently at and going strong until thedevelopers abandon ship.But where are the binaries? I do’nt see them all I see are source
codes zip and tars (for windows seesh overkill). You can scroll down the page and you’ll
see ‘older’ binaries…who needs them.WELL I THINK YOU HAVE TO DOWNLOAD THE
BUILD IT YOURSELF.(This is good in away,so get VS2013 and build it)

Q3. Is there an example of how to embed and use CefSharp with WPF? (Thats what you want it for right?)

Ans: (until this link lasts) has a ‘minimal example’

Q4. But that looks like an overkill minimal example and it won’t build ?

Ans: You have to get the release from the link in Answer 2 and build the dll (say for x64) and
add reference to the files , plus all the other c++ dll should be in the bin or so.



2. SO YOU NEED TO HAVE TO BUILDS FOR YOUR WPF APPLICATION (CORRECT ME IF I’M WRONG IN THE COMMENTS)3. SO CHANGE YOU BUILD CONFIGURATION TO X64 FROM BUILD MENU – CONFIGURATION MANAGER (OR X86 PROVIDED YOU HAVE THE CEFSHARP BUILD FOR 32BIT (COMPLICATED EMBEDDED FRAMEWORK INDEED) (Blame it on Chromium for waiting till 2014 for a x64 build) (Well don’t blame anyone since things are really made easy for you or so to get started,yes this is just the painful beginning depending on how you plan to use its powers sigh!)

Below is the dll ref to a sample WPF app I created in the same example I downloaded


Code is as below:


public partial class App : Application
       public App()
           Cef.Initialize(new CefSettings());


<Window x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525">
            <RowDefinition />
            <RowDefinition Height="Auto" />
        <wpf:ChromiumWebBrowser Grid.Row="0"
                          WebBrowser="{Binding WebBrowser, Mode=OneWayToSource}"
                          Title="{Binding Title, Mode=TwoWay}" />
        <StatusBar Grid.Row="1">
            <ProgressBar HorizontalAlignment="Right"
                         IsIndeterminate="{Binding WebBrowser.IsLoading}"
                         Margin="3" />
            <Separator />
            <!-- TODO: Could show hover link URL here -->
            <TextBlock />
Categories: C#, MSBuild, WPF Tags:

unable to find a version of the runtime to run this application

To fix the this issue, please try the following steps:

1.       Download the .NET Framework cleanup tool and choose to clean up the version of the .NET Framework that is causing problems on your system

2.       Download and install the version of the .NET Framework that you cleaned up in step 1 (such as the .NET Framework 1.0, .NET Framework 1.1 or .NET Framework 2.0)

3.       (optional) Download and run the .NET Framework verification tool to double-check that all .NET Framework files are correctly installed

4.       Download and install the desired .NET Framework service pack (such as .NET Framework 1.0 SP3 or .NET Framework 1.1 SP1) by running the setup package directly instead of using Windows Update.  Running it directly will allow the service pack setup to display error dialogs instead of having Windows Update suppress them.

For more details, please visit What to do if other .NET Framework setup troubleshooting steps do not help.

Categories: C#, Microsoft

Introducing : MetaComic : RSS/XML Daily Comic Strip Viewer & Archiver

The MetaComic client is a windows desktop based comic strip retrieval and archiving utility used to fetch comic strips from various publicly available RSS/XML feeds on the Internet. It can be used to update your daily comic strips for viewing at ease of your windows desktop. The application maintains a folder based comic strip database in which you can store and manage your favorite comic strips. It can be used to convert comic strip images in your comic strip database to CBZ (comic book archive) format or PDF (Portable Document Format) format for archiving and viewing in your eComic Reader( eg. ComicRack)

With MetaComic you can tag your favorite comic strips with keywords as you wish. It allows you to bookmark your favorite daily comic strips so that you can laugh or enjoy the humor again!.


Feel free to post any feedbacks as comment here too…

Categories: C#, Tools, Visual Studio

Get File Name from URL (C#/.NET)

string URL = "";
string FileName = URL.Substring(URL.LastIndexOf("/") + 1,
    (URL.Length - URL.LastIndexOf("/") - 1));

FileName will now contain project.exe

Categories: C#

Silent install dot net (.net) framework with logging.

To install the dot net framework silently with logging use:

D:\>dotNetFx40_Full_x86_x64.exe /q /norestart /log D:\dotNetFx40.log
Categories: C#, Programming

Web Service Generator for Databases

I was looking for a tool that would generate XML web services for my database (Currently I found)

  1. Web Service Generator for Databases
  2. Web Service Generator for Databases by fly-net

The other way is to well start from scratch and use WCF Data services , their are some sample on the blog you can follow on how to expose the database, it uses the visual studio as the wizard.

Categories: C#, Databases, Webservices