15,917,808 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Muthu Karunarathna (Top 27 by date)
Muthu Karunarathna
26-Jan-17 10:21am
View
Hello,
In Xamarin android QR scan using zxing is much easy as it requires only 3 lines of codes.
MobileBarcodeScanner.Initialize(Application);
var scanner = new ZXing.Mobile.MobileBarcodeScanner();
var result = await scanner.Scan();
string qrCode = result.ToString();
But it always opens a default view with full screen even if I set it inside oncreate event or button click. What I really need is having qr scan in half screen instead of full screen. remaining othert half screen will be used to add few buttons.
If anyone knows how to do it please let me know I have spent more than 3-4 days to find the answer for this component. Also if there are any other useful library than zxing for qr scanning let me know.
Thanks,
Muthu
Muthu Karunarathna
23-Jan-17 13:00pm
View
The problem is not about button click or other events. my camera will be opened in a new screen when i click on scan button. But I actually want is open the camera in same UI for half screen.So button and the camera open will be in same screen.
Muthu Karunarathna
23-Jan-17 8:23am
View
It is accessing the zxing library. Library was written to scan the qr by a new page.
below two lines are the qr generating code with the library. I want to know how to customize it.
var scanner = new ZXing.Mobile.MobileBarcodeScanner();
var scanResults = await scanner.Scan();
return scanResults.Text;
Muthu Karunarathna
22-Sep-16 8:23am
View
Please refer this link. I published it in .net forum and it might explains the problem clearly.
http://forums.asp.net/p/2104102/6082102.aspx?Re+Access+the+cross+domain+single+sign+on+websites+using+net
Muthu Karunarathna
21-Sep-16 11:04am
View
session id is changing from 1st domain to 2nd domain.and there is no connection between cookies among two domains. If I start first request with 1st domain I should have a proper connection among cookies to go further. But in between it is lost. It works if I pass session Id manually. But it is not what I want.
Muthu Karunarathna
22-Jul-13 13:13pm
View
:)
Muthu Karunarathna
19-Jul-13 7:54am
View
i selected tiles and also tried with large icons in the same menu.but images are not visible..
Muthu Karunarathna
17-Jul-13 3:10am
View
Deleted
WINDOWS 7..."view" menu means what?is that there in the properties?
Muthu Karunarathna
17-Jul-13 1:59am
View
Ican't attach a screen shot here.there is no location to attach..please i f anyone got my question answer me..
Muthu Karunarathna
28-May-13 9:38am
View
In System.Version I couldnt find features to validate version number with the above one.
Think in to a list Im adding 2.1 but that cannot be entered without 2 already in the list..
How can I do this validation?
Muthu Karunarathna
28-May-13 9:02am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string v1 = "1.0.1.1";
//string v2 = "1.24.55.487";
string v2 = "1.1.55.487";
var version1 = new Version(v1);
var version2 = new Version(v2);
var result = version1.CompareTo(version2);
if (result <= 0)
Console.WriteLine("version1 is smaller");
else
Console.ReadLine();
}
}
}
//this is wt i tried...
Muthu Karunarathna
28-May-13 8:57am
View
lt is WPF
Muthu Karunarathna
28-May-13 8:38am
View
it is C# 4.0 FRAMEWORK
Muthu Karunarathna
28-May-13 8:37am
View
yes.it is a list box.i have to check the order of list box values according to versioning rules..
Muthu Karunarathna
9-May-13 5:50am
View
This also not working.I dnt knw what to do..my main requirement is getting student ranks accroding to thier marks and view them using crystal report.above query which i used is showing ranks correctly.but i have no idea how can i view them through crystal reports.because it can't insert to db.without above formula,if there is another method which i can calculate ranks through crysatal report please show me the way.
Muthu Karunarathna
8-May-13 20:42pm
View
Join statement also not working there.
Muthu Karunarathna
8-May-13 20:38pm
View
Yes.Iam sorry that i have put wrong tag.iam using mysql.
Muthu Karunarathna
28-Feb-13 0:25am
View
above is the method which iam using..by giving those 4 parameters i want to add data.how can i do that to same excel without opening again and again?
Muthu Karunarathna
28-Feb-13 0:24am
View
public void WriteToExcel(string myPath,string row,string col,string val)
{
FileInfo fi = new FileInfo(myPath);
if (!fi.Exists)
{
MessageBox.Show("file doesn't exists!");
}
else
{
var excelApp = new Microsoft.Office.Interop.Excel.Application();
var workbook = excelApp.Workbooks.Open(myPath);
Excel.Worksheet worksheet;
worksheet = (Excel.Worksheet)workbook.Sheets.get_Item(1);
((Excel.Range)worksheet.Cells[row, col]).Value2 = val;
excelApp.Visible = true;
//workbook.Save();
workbook.Close();
}
}
Muthu Karunarathna
28-Feb-13 0:20am
View
now it works..but there is another problem when i use this method to write several data to same excel.i want to add several data to a same excel which is exsiting.but when i tried it it always open excel sheet foe each time when i call this method..is there any method to close the excel like excel.close or something?
Muthu Karunarathna
27-Feb-13 0:20am
View
I tried this code..but it gives following error for " Microsoft.Office.Interop.Excel.Range range = worksheet.Cells[1,1] as Range;"
this line..
nullreferenceunhandled..
can you please tell me a solution for that?
Muthu Karunarathna
27-Feb-13 0:19am
View
Deleted
.
Muthu Karunarathna
25-Feb-13 21:49pm
View
Thank you for your help.i will try this.
Muthu Karunarathna
25-Feb-13 21:49pm
View
Thank you for your help i will try this.
Muthu Karunarathna
25-Feb-13 21:48pm
View
Thank you for your help.i will try this.
Muthu Karunarathna
25-Feb-13 9:27am
View
Excel.ApplicationClass excelApp = new Excel.ApplicationClass();
Excel.Workbook workbook = (Excel.Workbook)excelApp.Workbooks.Add(Missing.Value);
Excel.Worksheet worksheet;
worksheet = (Excel.Worksheet)workbook.Sheets.get_Item(1);
((Excel.Range)worksheet.Cells["1", "A"]).Value2 = "5";
((Excel.Range)worksheet.Cells["2", "A"]).Value2 = "7";
//in first line they are saying an error "application class can't be embedded"
Muthu Karunarathna
25-Feb-13 8:52am
View
i have to access excel data and update some cells of it using c# code. i did first part and it went succesful. but i'm stucked in second part of write to cell.how can i write values of a text box to a cell.that's where i stucked.
Show More