16,011,988 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 .NET 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 Sanman Marathe (Top 13 by date)
Sanman Marathe
26-Dec-14 5:59am
View
sure !!!
Sanman Marathe
12-Dec-14 9:00am
View
Thank you !!!! Those were helpful to get more knowledge !!!!!
Sanman Marathe
12-Dec-14 8:59am
View
Thank you, That was very helpful ! Cheers ! !!!!
Sanman Marathe
12-Mar-14 7:19am
View
Sure
Sanman Marathe
12-Mar-14 6:44am
View
I got it solved...
I ran the stuff query once and took centercode data result into and excel
and created and multiple stuff query in excel and that way i got 484 lines of "select stuff" query with the needed results output..
A very bad way todo it finally got it :D !!
Sanman Marathe
12-Mar-14 5:40am
View
Hi Sir,
I ran the Split function
And the updated query, it still says sunstring returned more than 1 value..
IF i substring as top 1, output comes... but i need all the records..
M googling issue meanwhile ..
Any ideas more sir??
--Sanman
Sanman Marathe
12-Mar-14 4:34am
View
Hi,
I actually worte this query below.. I also got error saying substring returned more than 1 value..
declare @parameter int
set @parameter = (Select MedicalCenters from PreClaimRequestor where ClientID = '1300')
select stuff ((select ',' +cast( KaiserClientName as nvarchar(max)) From Kaiserclient where KaiserClientID in(@parameter) for xml path ('')),1,1,'')
Sanman Marathe
12-Mar-14 4:09am
View
Hi,Thanks man for the stuff funtion..!!It really works..
But now i have multiple records in the db like we have passed the parameters (1,2,3).
I have multiple rows with values like (1,2,3) next is (22,34,15) and (45,33,21) and so on..!!
How can i pass those in the above query,,
M aslo getting error "Conversion failed when converting the varchar value ' 10, 4' to data type int." i think which means it is expecting only 1 set of parameter values seprated by comma, but i am passing the values with multiple rows...
How can i pass those in the above query,,Plz help..!!
Sanman Marathe
24-Dec-13 8:20am
View
Where is visual studio on the servers.. c'mon man..!!
Please let me know any iis settings or anything when i need to display app_offline while code deploment on servers..
Sanman Marathe
4-Jun-13 9:01am
View
hey...
use this simple code..
<asp:HiddenField ID="hdn" runat="server" Value='<%# Eval("FullName")%>' /> <asp:CheckBox ID="chk" runat="server"/>
And in ur code behind use hdn.value wherever u need to use the checkbox value...
Sanman Marathe
8-May-13 3:16am
View
lucky for me i answered all remaining one's and cleared the round. Having my next round in the coming week... !!
Sanman Marathe
7-May-13 10:51am
View
Actually they asked me this question at my Microsoft interview.. i couldn't answer it... i didn't even expect such questions...
Sanman Marathe
2-May-13 10:33am
View
Hi Edo,
Actually i tried itextsharp also. It is working,, but not for my scenario..
I tried with FileStream outStream = new FileStream(targetFilename, FileMode.Create)
even with FileMode.Append,FileAccess.Write
But all it does is it removes the previously written data in pdf and writes this new image only.
Actually i needed to add an image at bottom of pdf and also pertain the old data already present in pdf..
but i'll try the above code which u gave as it is again.....
Thanks!!
I had tried this code...
private void AppendPDFFile()
{
Document doc = new Document();
try
{
string pdfFilePath = Server.MapPath(".") + "/pdf/MynewPDF.pdf";
//Create Document class object and set its size to letter and give space left, right, Top, Bottom Margin
PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream(pdfFilePath, FileMode.Append,FileAccess.Write));
doc.Open();//Open Document to write
// Now image in the pdf file
// iTextSharp.text.Image ppp = iTextSharp.text.Image.GetInstance(pdfFilePath);
string imageFilePath = Server.MapPath(".") + "/image/Desert.jpg";
iTextSharp.text.Image jpg = iTextSharp.text.Image.GetInstance(imageFilePath);
//Resize image depend upon your need
jpg.ScaleToFit(100f, 80f);
//Give space before image
// jpg.SpacingBefore = 10f;
//Give some space after the image
// jpg.SpacingAfter = 1f;
//jpg.Alignment = Element.ALIGN_BOTTOM;
doc.Add(jpg); //add an image to the created pdf document
}
catch (DocumentException docEx)
{
//handle pdf document exception if any
}
catch (IOException ioEx)
{
// handle IO exception
}
catch (Exception ex)
{
// ahndle other exception if occurs
}
finally
{
//Close document and writer
doc.Close();
}
}
Show More