Archive for the ‘web’ Tag
ASP.NET print HTML report in A4 Paper
work in ASP.net project again. currently working on report module. I need to print all members notification letter in once. the best way for web printing of course is generate PDF file, but my company no provide me PDF library, and I can’t find any free PDF library for ASP.net. So, the only method is use the javaScript, Window.print() function to print my report.
I used repeater web control to generate the report and in HTML form.
I need fix all in A4 size, if my repeater generate 4 member notification letter, then I need exactly print 4 letters in A4 paper.
But you may face this problem:
when the first page content cannot fix in entire A4 paper, the second page content will move up. or maybe :
the first page content too long, and extend to second page.
that’s not really possible to control, because it depending on content. But I found out the IE8( or IE7) have a function call “shrink-to-fit”that can solve my problem.
I need to explain my situation,
1st, I build management system for a company but not create website for company. So, I can force my client using which browser to operate the system. 2nd, client no require cross browser capability . 3rd, my company no provide any printing library for me.
first of all, you need write all the page content(report content) within the <div> , 210mm X 297mm is A4 paper size.
2nd, setting IE:
left click on “Page Setup… (menu item)”
change the page size to A4 size.
Tick the Enable Shink-to-Fit
Done. Now you can print your report nicely. kindly Email me, if you face any problem in ASP.net printing issue.
you can download my solution file here.
enhance your searching experience-GAS v2.1(updated)

what is GAS?
GAS(Google accurate Search) is an application developed by me, 1st version was realeased in 2007, check my another blog here
purpose
A lot of people use google to search for information,as you know, google is a very strong search engine, once we key in a keyword in search box and press the search button, there are unlimited result return. It is very burden to find useful information from there. If you know to use google Search operators, everything will be different, you can find more accurate and satisfactory results. However, general users do not know how to use Search operators, this is the reason I created Gas.
Gas is a desktop application which allow users to searching something just click some button, and the application will auto fill in the search operation in google search box to find acculate result.
In version 2 beta version 2.1, I just created some useful search operation in this application, article file type filter, image search and programming language search, enjoy and thank you.
Gas version 2.0 beta Gas version 2.1 was build on Adobe AIR framework, so your need AIR runtime to run this application, you can download here AIR runtime 1.5
GAS 2.0 beta GAS 2.1 download here
http://www.box.net/shared/udct0uyrar
http://cid-4be34131f6f0d7ca.skydrive.live.com/self.aspx/Public/GAS.air
Actually I created an Installation badge for this application, but worpress is not allow javascript and embeds code even is frame tags, so I write another page for this installation badge, here(The installation badge will take care of the installation of the runtime) or u can direct download the installer file here.
imagination of web future
Recently, prepare my seminar, I found out something. web 2.0 change the way of end-user utilize the web.In the same time, RIA technology rise, another web revolution are began in preparation stage. yes, growth of adobe Flash and Ms silverlight those embeded-version RIA(rich internet application) technology. why do I say that another web revolution? it does not refer to how end -users and software developers utilize the web,but rather to development technique.
if you are web developer, you should know traditional web development is using HTML and css for layout user interface, using javascript process client-side, and a server-side technology for exchange data with database or other data store. But Flash and silverlight change original ecological of web development. How many html tags using in a flash-site or silverlight-site? Do you think web developer need html knowledge if he/she only build flash-site or silvelight-site? or a web developer who don’t know html and css can consider is a web developer if he/she only know flash and silverlight?
few year ago, I just thought flash can replace other client-side technology.unimaginable, today flash can access database already, through web service and http service and objectRemote method. It become more and more powerful.
do you think in future, html and css just can be a supporting role in web application? or browser can direct compile XAML(silverlight) or MXML(flex) markup language in future?
[web 2.0] OVI.com
Recently, I discover a very interest and quite GENG website which is ovi.com. what is ovi? ovi is a Internet service by Nokia, and centered on ovi.com. you can share your photos with your friends online, you can discover brand new tranck in the Nokia music store, download later Map, buy latest mobile game, even get your pc files when you are move, sync contact, calendar with your laptop, back up your file, Keep your information up to date on your mobile, PC and Ovi.com. So, No matter where you are, you also can get your information, explore your new life style,all service through a Nokia smart phone and get from 1 place, ovi.com.
hehe, seem advertise for Nokia, but I really think it will change our life style, explore new user experience, step nearly to digital door. some more, KL now has a lot of place is free wi-fi service, as long as you have a smart phone or laptop or PDA, you can access to internet wherever you are, 21 century mah!
发表评论