There was a question recently on my CodeProject article "Dynamically generate a MS Word document using HTML & CSS" . The article describes how to generate a Word document programmatically without using any components, by exploiting the formatting features exposed through Office XML and CSS. The questioner wanted to know how to add a custom header and footer and show something like Page X of Y (total pages). Based on what I have tried so far, showing a header and footer using Office XML in MS Word is not as easy as it is in Excel . If you want to keep the code simple & don't need any great fireworks i.e. you will just settle for page numbers in the header or footer then it's a matter of adding a few lines to the original source code. The code can be viewed at this Github Gist Update (1-Sep-2010): To add a custom header & footer, check this new post To add a footer that shows Page number at the bottom right, here are the steps - 1) Add these classes...
As the Web got more popular in the last decade, it has been common to see advertisements carrying not much of details but just a terse URL prompting those interested to visit a website to get more info. As Mobile Internet gets more affordable & handsets with cameras get cheaper, a number of applications that leverage both those features have started to emerge. Microsoft Tag & QR Code are visual tags that use proprietary technology to encode data in a 2D "barcode". They pack a lot of information in a small space. These visual tags can be used in traditional marketing media like print advertising, billboards, packaging and merchandising. A user capturing a visual tag through her mobile phone camera can be directed to a website for detailed information (that can include online photos & video) by a barcode reader application (that needs to be installed before hand on the mobile). Picture courtesy: Wikipedia Google utilizes QR Code to promote the most sought ...
[Update - 2022] YouTube now automatically generates a transcript & timestamp that can be toggled Subtitles within videos help non-native speakers clearly understand & follow what's going on while the video is playing. If you wish to take notes from a YouTube video, you will find this tip for extracting the subtitles from a YouTube video (that has subtitles) to be a time-saver. I have adapted this tip from an answer to a related question on the Quora website - Open the video page in Chrome browser (or any other browser that provides HTTP debugging/Developer Tools) and pause the video Right click anywhere on the page, and click on Inspect Element OR hit the F12 function key. Click on Network tab Under the Network tab look for an item called timedtext. Right click on it and open that file in a new tab. An xml file containing subtitles with their timestamps(the stuff inside of <>) opens up. To get rid of the timestamps and just have the plain transcript...
Comments
Post a Comment