Aspose.Words For .NET : Easy to use library

0

How I got introduced to this wonderful product?

Recently, our development team was working on a multi-questionnaire wizard which collects information from the user, and auto-populates plenty of documents, which are later verified and signed by the user. Because there were too many documents, we didn’t want the user to fill each of them separately as most of the documents shared the same data. After a thorough research we decided to use Aspose.Words for .NET.

How easy it was to use?

The products we develop do not rely much on the Third-Party APIs, but due to the time crunch we decided for this purpose let’s go with a Third-Party API which can be easily integrated and the deployment is easy as well as less time taking. Thankfully,  Aspose.Words met all of our requirements and we are right in time to make our product live. Apparently, Aspose is the only library which has all object similar to Microsoft Office Object Model and is very useful to add some flexibility and functionality to our application. We were easily able to use the features like inserting formatted text, paragraphs and images. Also, we were able to generate sections based on user inputs and populate tables using data retrieved from database. The ability to carry out initial testing within the trial was very beneficial and the support towards the end user is awesome. I strongly encourage those who have a need to convert word documents or need to access fields programmatically to use Apose.Words.

Code Sample

Implementation of Aspose API Library

Document Template

This is how the document template is created.

Where can i find more about the product?

Click on the image below 😉

aspose

Advertisements

.NET CORE: MICROSOFT FINALLY WORKING THROUGH A DEVELOPER’S PERSPECTIVE

0

Microsoft lays a patch towards the contribution to open source world with the release of .Net Core, another version of one of its most favored development platform. This is just another update to the .Net platform. This release includes .NET Core 1.0, ASP.NET Core 1.0 and Entity Framework Core 1.0. It also includes a Visual Studio Core extension and Visual Studio 2015 Update 3 that would help in developing .NET Core application.

Apart from being open source, .Net Core also provides cross-platform support for the developers who are more comfortable working on Linux or MAC OS. Microsoft has already shown its acceptance to the cross platform support by acquiring Xamirin, which provides cross platform mobile application development. However with this release it has added one of its assets to the list of cross platform software list.

The Core Framework is Microsoft’s biggest change introduced until now. A platform that provides modularity, has speed, is light weight, and is open source is what developers must have been waiting for. The Core Framework would also enable developers to create a NuGet package of their code that would enable them to use it anywhere else.

Is it too much to give away?

.Net being one of the greatest assets of Microsoft has turned into a cross-platform development platform with the new update .Net Core. This being a good news for the developers who do not favor Windows, might decrease the number of Windows users. However this won’t stop the developers from purchasing Visual Studio for the MAC OS and Linux platform. This might also lead to an increase in the Azure users. This step taken by Microsoft was required. With this the excuses of the developers shifting to the open source languages from Microsoft’s .Net would no longer be valid.

More to the Core Framework

.Net Core 1.0 would definitely have some more versions coming in the near future. The features like WebPages, WebForms, SignalR real-time web-based applications which are still not implemented in .Net Core will be included in the later versions of the framework. Another feature that is planned to introduce in the Core Framework is the Controllerless Views, same as that of ASP.NET. The updates would definitely surprise the developers with something that was most wanted.

Microsoft acquires Wand Labs soon after LinkedIn acquisition

0

As the post on the Wand Labs says Microsoft would be purchasing it soon. According to Microsoft’s post, Wand Labs will be integrated with their current Bing platform and engineering team to co-engineer intelligent agents and chat bots.

Founded in 2013 by CEO Vishal Sharma, Wand Labs has already been developing in areas specific to Conversation as a Platform and was able to raise $3 million in funding.

According to David Ku, Corporate Vice President, Information Platform Group, the acquisition will help Microsoft rise above its competitors in an era of ‘conversational intelligence’. He also said  “Wand Labs technology and talent will strengthen our position in the emerging era of conversational intelligence, where we bring together the power of human language with advanced machine intelligence — connecting people to knowledge, information, services and other people in more relevant and natural ways.”

With Wand Labs, Microsoft may be able to add more natural language as well as the much-required technology to strengthen the virtual assistance in Cortana, Microsoft’s Virtual Assistant.

Vishal Sharma, Founder of Wand Labs quoted that he and his team are happy with this acquisition and also thanked their users that have participated in trial runs of the apps in the past and said that though Wand Labs would be shutting down, they would see refined versions of their vision through Microsoft.

Xamarin.Forms: Image Button Recipe

0

Today, we will learn how to create an Image Button in Xamarin Forms. Most of you will think, why? Isn’t there an Image property of Buttons? Yes, there is an Image property in Button but that doesn’t meet the needs completely since it adds the image as an icon to the text in the button. So to solve this problem, I came up with this tweak.

Ingredients:

Procedure:

1. To create a new application in Visual Studio we will select New Project from the Welcome screen.

2. Select Mobile Apps from the installed templates of Visual Studio under C#. Now as you can see we have two options for a Blank App, one is Xamarin.Forms Portable and Xamarin.Forms Shared. We will be working on Xamarin.Forms Portable.

3. Now you can see that the solution file contains the 4 projects XamarinSample (Portable), XamarinSample.Android, XamarinSample.iOS and XamarinSample.WinPhone. We will now right-click on the first project, XamarinSample (Portable) and click on Add -> New Item from the context menu.

4. Now we will select Forms XAML Page from the dialog and name it.

5. Once the Forms XAML Page is added to the project, open the App.Cs and write the following code in the constructor:

 MainPage = new NavigationPage(new MainPage());  

The App.cs will look like this:

6. Now go back to the Forms XAML Page we created in Step 4, in other words the MainPage that we called in the constructor. And replace the Label tags with:

<Image x:Name=“img” Source=“image.jpg” 

VerticalOptions=“CenterAndExpand” 

HorizontalOptions=“CenterAndExpand”></Image>  

The MainPage.xaml will now look like this:

7. Now we will write the Tap Gesture Recognizers code in MainPage.xaml.cs as in the following:

//Creating TapGestureRecognizers  

var tapImage = new TapGestureRecognizer();  

//Binding events

tapImage.Tapped += tapImage_Tapped;  

//Associating tap events to the image buttons

img.GestureRecognizers.Add(tapImage);  

void tapImage_Tapped(object sender, EventArgs e)  

{  

// handle the tap

  DisplayAlert(“Alert”“This is an image button”“OK”);  

}  

The MainPage.xaml.cs will now look like this:

8. Now add the “image.jpg” in the all the three projects of the various OSs in the following way:

Android: Add the file in ImageButtonRecipe.Droid -> Resources -> drawable folder.

iOS: Add the file in ImageButtonRecipe.iOS -> Resources.

WinPhone: Add the file in ImageButtonRecipe.WinPhone.

9. Now the Image Button will look like this across all the devices:

10. On clicking these buttons it will display a pop-up message.

 This is the simplest way to have an image button in your Xamarin.Forms app across all the devices. Click here for sample project.
Make some beautiful apps using Xamarin.Forms and tweet your queries to @adiiaditya.

Xamarin.Forms served hot with Caffeine

0

For over several years, developers have dreamt of being able to write their applications in a single language and have it run on various mobile platforms. The thought of “Why go for one, when you can have it all?” has always intrigued them.

Finally, one fine day, our developer friends at Xamarin Head Quarters, San Francisco, CA fulfilled this dream with Xamarin.Forms, the dynamic cross-platform software which simplifies mobile development by allowing developers to write once in C# and provide native experience in Android, iOS and Windows Phone using the same API across all platforms.

 Requirements:

Compatible Devices:

  • Android 4.0 or higher
  • iOS 7.0 or higher
  • Windows Phone 8 or higher

Xamarin served hot with caffeine will act as a prologue to your perfect cross platform app development story. While the release of Xamarin 3 brought smiles to the face of developers with the introduction of Xamarin.Forms, we are sure that the updates will bring contentment in developers.

I will now quickly walk you through the steps to make the environment ready for the X-perience.

Installing Xamarin Studio

Step 1. The first step will be downloading the Xamarin unified installer.

Step 2. The second step will be to run the Xamarin Installer.

Xamarin1

Step 3. Once we are done installing Xamarin on both the systems i.e. Windows as well as Mac. We need to activate Xamarin on both the systems.

Xamarin2

Step 4. Once you log in, you can choose if you want to Begin a Trial or Purchase a License. If you Begin a trial and activate Xamarin, you can see how many days of the trial you have left at any point:

Xamarin3

Creating an application

Step 1. To create a new application in Visual Studio we will select New Project from the welcome screen

Step 2. Select Mobile Apps from the installed templates of Visual Studio under C#.

Xamarin4

Step 3. Now as you can see we have two options for Blank App, one is Xamarin.Forms Portable and Xamarin.Forms Shared.

Xamarin.Forms Portable: Shares the code using a portable class library.

Xamarin.Forms Shared: Shares the code using shared assets project.

We will be working on Xamarin.Forms Portable.

Xamarin5

Step 4. Now you can see the solution file contains 4 projects namely, XamarinSample (Portable), XamarinSample.Android, XamarinSample.iOS and XamarinSample.WinPhone.

 Xamarin6

Deploying an Application

Step 1. Right click on the project which you want to deploy and select “Set as StartUp Project”.

Xamarin7

Step 2. If you want to deploy on a Windows Phone, choose the Device/Emulator from the first drop down :

Xamarin8

Choose iPhone/iPhoneSimulator from the second drop down and the device from the third drop down if you want to deploy on an iPhone:

Xamarin9

For deployment on Android, choose the device from the fourth drop down:

Xamarin10

Step 3. Now click the Xamarin11  button to deploy the application. You will see this as the output screen on the device you opted:

Xamarin12

Now, we are all set to develop some awesome apps on our beloved IDE. We hope the exhilaration is mutual. 😉

Let’s, wait for more awesome bits on Xamarin.Forms this year. Till then, grab your coffee mugs and join the excitement on Twitter if you haven’t already, give us a shout-out @thewittytechie with #Xamarin.

The best FPS game of 2013

10


call-of-duty-ghosts-vs-battlefield-4

As the year 2013 goes by it left the gamers titillated for the holiday season with the world’s most anticipated First Person Shooter games released in November 2013. Yes we are talking about the two giants of the gaming industry Infinity Ward and DICE. Gamers around the world hit the stores to get their hands onto the most anticipated games of 2013. Though both Battlefield and Call of Duty have different ways of portraying FPS gaming but one just cannot stop himself from comparing the two and here we are trying to look through every meticulous detail we can find about how the games fared and which one appealed more to the gaming community.

Single Player Campaign

After Infinity ward’s previous Call of Duty game, Modern Warfare 2 gave the gamers an immersive experience in the single player campaign with a great story and some breath taking moments, a lot was expected from Ghosts. The story is straight forward but fresh, there are some amazing visual effects in the form of explosions in the environment and specially the space combat scenario which are bound to take you by surprise. Infinity Ward was indeed successful in winning the hearts of the gamers in the campaign section.

cod ghosts campaign

On the other hand Battlefield 4 has a more weapon based action, it seems like DICE is still trying to capture the Call of Duty magic in its campaign but somehow fails, what is worth watching is the action packed open map combats which one can anyway experience in the multiplayer. So, for this section Call of Duty Ghosts is a winner.

battlefield 4 campaign

MULTIPLAYER

The multiplayer gameplay is quite different for both the games. Battlefield has always had the huge maps long range gun and vehicle combats where as call of duty relied on gun or hand close range high action combats. Both the games are equally appealing to the audience but battlefield 4 has taken the combat to a whole new level of  realism. With the Frostbite 3 engine the building destruction, reflections and overall gameplay immerses you in a whole new way and you just can help but play for long hours.Not only this, Battlefield 4 has its battlelog app for the smartphones and tablets, you can set up your loadout or you can be a part of a game and send combat orders to your squad directly on the go without  keeping you engrossed in the action even when you are away from your console or pc. This surely makes things better for the players who want to stay in touch with the game even on the move.

battlefield 4 multiplayer

  Battlelog for Tablets and Smartphones

battlelog for tablets and smartphones

Call of Duty has always been a leader in multiplayer FPS gaming with its action packed gameplay and killstreak system. This year also Infinity Ward did not let its supporters down with Ghosts. There are some new and fresh game modes like  blitz and cranked which improve the overall experience and keep you engrossed till the very end of the game. But somehow Infinity Ward failed to bring about any significant changes to the gameplay which totally feel like Call of Duty. The same old gun combat which gets a bit monotonous sometimes. Though Ghosts puts up a fair fight to Battlefield 4 but we have to give this one to Battlefield 4.

ghosts multiplayer

GRAPHICS

We all know how amazing Battlefield 3 was, the special effects and the reflections on the map and objects felt so real. With the Frostbite 3 engine the graphics have escalated to a whole new level. The explosions, bullet damage effect, map reflections, environment response all feel pretty real. Just when you think it cant get any better we got to see the most amazing  part of it all , you can demolish entire buildings and skyscrapers during the game making the opponent rush for cover. This takes the immersion to an insanely new level and yes it gives you goosebumps. The level of detail in the open field maps also feels amazing to play in and does provide a level of realism to the whole gaming experience.

battlefield 4 graphics

Infinity ward tried to pose a comeback with Call of Duty Ghosts by announcing that it would be released for the next-gen consoles. With added environment interactions and special effects, the game does manage to sweep you off your feet. The forest detailing and reflections bring about a level of realism but fail to go past that Call of Duty cliche graphics. It seems like Infinity ward could not exploit the next generation console hardware completely as the graphics show no major difference. We have to give this one to Battlefield 4.

ghosts graphics

So the bout is fair and even. Both franchises tried their level best to lure the gaming community to their end but it really would be unfair to crown a sole winner. Battlefield 4 does seem to be a winner here but it is just a personal opinion based on my review. I would leave it up to you guys to decide who deserves to win the crown of THE BEST FPS GAME OF 2013.

Crown the smartphone of the year 2013

0