15,923,845 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 Visual Basic questions
View Javascript 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 Sidharth R (Top 35 by date)
Sidharth R
12-Sep-14 1:42am
View
sorry i have one more requirement.
i need category list view. for example
if
a user pass out year is 2010 with Btec as qualification then.
if he click 2010 >> btec then he should view all users who are joined in that group.
Sidharth R
9-Sep-14 5:42am
View
i got the answer...!!!
Sidharth R
9-Sep-14 0:31am
View
the answer was given as a comments....
Sidharth R
25-Jul-14 4:59am
View
need a code to load an .rtf file from ftp server ???
Sidharth R
24-Jul-14 3:24am
View
need a code to load an rtf file from ftp server ???
Sidharth R
24-Jul-14 2:58am
View
Deleted
i need to get data outside the network.. over internet.. not inside d same network
Sidharth R
23-Jul-14 1:58am
View
Deleted
Dim sfd As New SaveFileDialog
With sfd
.AddExtension = True
.DefaultExt = ".doc"
.Filter = "Word Document Files (*.doc)|*.doc"
.FilterIndex = 1
.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments
.Title = "Select The Location To Save This Word File"
.ValidateNames = True
End With
If sfd.ShowDialog() = DialogResult.OK Then
rtbcomplete.SaveFile(svLocation)
endif
the above code wil save richtextbox as doc ..
but i need a header image and footer image while saving ..
Sidharth R
16-Jul-14 3:45am
View
.gif format ...
i need footer in all pages ...
i have modified my code to this...
but footer gets overlapped and header is not visible to
Dim myDocument As New iTextSharp.text.Document(PageSize.A4.Rotate())
PdfWriter.GetInstance(myDocument, New FileStream("c:\agreement.pdf", FileMode.Create))
myDocument.Open()
Dim Headerpdf As Global.iTextSharp.text.Image = Global.iTextSharp.text.Image.GetInstance("C:\Users\Sidharth\Desktop\me.gif")
Headerpdf.ScaleToFit(90.0F, 200.0F)
Headerpdf.ScalePercent(24.5F)
Headerpdf.Alignment = Global.iTextSharp.text.Image.ALIGN_TOP
Headerpdf.SetAbsolutePosition(10.5, 0)
Dim Footerpdf As Global.iTextSharp.text.Image = Global.iTextSharp.text.Image.GetInstance("C:\Users\Sidharth\Desktop\me.gif")
Footerpdf.ScaleToFit(90.0F, 200.0F)
Footerpdf.ScalePercent(24.5F)
Footerpdf.Alignment = Global.iTextSharp.text.Image.ALIGN_BOTTOM
Footerpdf.SetAbsolutePosition(10.5, 0)
For i As Integer = 0 To 4 - 2
myDocument.Add(Headerpdf)
myDocument.Add(New iTextSharp.text.Paragraph(Me.txtdata.Text)) ''carries the text/data that has to be printed on the page.
myDocument.Add(Footerpdf)
Next
Dim addLogo As iTextSharp.text.Image
addLogo = iTextSharp.text.Image.GetInstance("C:\Users\Sidharth\Desktop\me.gif")
addLogo.ScaleToFit(128, 37)
addLogo.Alignment = iTextSharp.text.Image.ALIGN_LEFT
myDocument.Add(New iTextSharp.text.Paragraph(vbNewLine & vbNewLine & "yours Faithfully" & vbNewLine & " "))
myDocument.Add(addLogo)
myDocument.Add(New iTextSharp.text.Paragraph(vbNewLine & vbNewLine & "DNname" & vbNewLine & " "))
myDocument.Close()
Sidharth R
2-Jul-14 5:14am
View
Thank you...!
i got the answer..
Dim filePath As String = Nothing
Dim file As New OpenFileDialog()
file.Title = "Word File"
file.InitialDirectory = "c:\"
file.RestoreDirectory = True
If file.ShowDialog() = DialogResult.OK Then
filePath = file.FileName.ToString()
End If
Try
' create word application
Dim word As Microsoft.Office.Interop.Word.Application = New Microsoft.Office.Interop.Word.Application()
' create object of missing value
Dim miss As Object = System.Reflection.Missing.Value
' create object of selected file path
Dim path As Object = filePath
' set file path mode
Dim [readOnly] As Object = False
' open document
Dim docs As Microsoft.Office.Interop.Word.Document = word.Documents.Open(path)
docs.ActiveWindow.Selection.WholeStory()
' handover the data to cllipboard
docs.ActiveWindow.Selection.Copy()
' clipboard create reference of idataobject interface which transfer the data
Dim data As IDataObject = Clipboard.GetDataObject()
'set data into richtextbox control in text format
txtdata.Text = data.GetData(DataFormats.Text).ToString()
' read bitmap image from clipboard with help of iddataobject interface
Dim img As Image = DirectCast(data.GetData(DataFormats.Bitmap), Image)
' close the document
docs.Close(miss, miss, miss)
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
Sidharth R
27-Jun-14 5:13am
View
i have checked the site before itself .. but i was not able to get a solution.
Sidharth R
27-Jun-14 5:10am
View
nope it is an exe project in which oracle is installed in one of the local LAN Network which ip is 192.16X.XX.XX
Sidharth R
26-Jun-14 0:51am
View
As the project is converted to an .exe file . it works fine in my system
but inside a local network it wont work. it shows tns not responding... (Hope some problem with connection string)
i was using below as connection string .
Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<ipaddress>)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User ID=hr;Password=admin1234;"/>
or
Data Source=(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = off)
(FAILOVER = on)
(ADDRESS_LIST =
(LOAD_BALANCE = on)
(FAILOVER = on)
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521))
)
(ADDRESS_LIST =
(LOAD_BALANCE = on)
(FAILOVER = on)
(ADDRESS = (PROTOCOL = TCP)(HOST = ip address=)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ip address=)(PORT = 1521))
)
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
(FAILOVER_MODE =
(TYPE = select)
(METHOD = basic)
(RETRIES = 16)
(DELAY = 1)
)
)
);User ID=SYSTEM;Password=admin1234;"/>
Sidharth R
24-Jun-14 6:21am
View
does oracle connection support framework 2.0 and 4.1 ?? does it support 4.0 ??
Sidharth R
11-Jun-14 1:36am
View
Thanks for the answer.. But could u show me an example for that ??
Sidharth R
26-May-14 1:55am
View
after that how to enable edit option for numerical value in a string ?
Sidharth R
23-May-14 5:53am
View
can u get me a sample code for That ?
Even i'm also trying for same
Sidharth R
23-May-14 1:57am
View
-- the content has been moved to the question --
Maciej Los
Sidharth R
23-May-14 1:47am
View
yup that what i'm in search (vb.net)
Sidharth R
22-May-14 5:58am
View
ya thanq i got a solution
Dim myDocument As New iTextSharp.text.Document(PageSize.A4.Rotate())
Try
PdfWriter.GetInstance(myDocument, New FileStream("c:\XXXXX.pdf", FileMode.Create))
myDocument.Open()
myDocument.Add(New iTextSharp.text.Paragraph(txtdata.Text))
Catch de As DocumentException
Console.[Error].WriteLine(de.Message)
Catch ioe As IOException
Console.[Error].WriteLine(ioe.Message)
End Try
myDocument.Close()
Sidharth R
21-May-14 6:40am
View
Yup..!! i just enabled named pipes.
Sidharth R
21-May-14 6:38am
View
Thanking You Alot...!! i got the output...!!
i was in search of the answer from morning
i got the answer from this link
http://download.pro.parallels.com/10.3.1/docs/windows/Guides/pcpw_upgrade_guide/7351.htm
Thank You
Sidharth R
21-May-14 6:32am
View
may i know how to do that ??
Sidharth R
21-May-14 6:22am
View
Allow remote connection is on oly ...
plz check the below link i ve done the same but still im facing the issue
http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx
Sidharth R
21-May-14 6:08am
View
u mean like
ping ipaddress:1433 in cmd??
itz not getting pinged...!!
Sidharth R
21-May-14 5:57am
View
Ping is successful..
Sidharth R
21-May-14 5:47am
View
Microsoft SQL Server 2008 R2
Microsoft SQL Server Management Studio 10.50.4000.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.9600.17041
Microsoft .NET Framework 2.0.50727.5477
Operating System 6.1.7601
Sidharth R
21-May-14 5:41am
View
network firewall is off inside local network..
but i can access other SQL servers from my local machine.
Sidharth R
21-May-14 5:36am
View
Unhandled Exception has occurred in your application.
A network related or instance-specified error occurred while establishing a connection to sql server. The server was not found or was not accessible verify that instance name is correct and sql server is configured to allow remote connection (provider: named pipes provider , error 40 - could not open a connection to sql server )
Sidharth R
15-May-14 3:19am
View
Deleted
how to pass value from a text to workflow and the result back to the form ??
Sidharth R
7-Mar-14 4:25am
View
anyways thanks for the help i got the solution ...
i just changes the code as
set @role = CONVERT(VARCHAR(250),(select Name from Newuser where Username=@Username))
and the program worked well :D
Thank you for your valuable time..
-Sid-
Sidharth R
7-Mar-14 3:35am
View
Sno as bigint
Username as nvarchar(max)
pass
name as nvarchar(max)
emailid
roleid
Sidharth R
7-Mar-14 3:14am
View
but im getting the out put as '@role' ?? not the value inside that ..!!
Sidharth R
7-Mar-14 2:11am
View
my store procedure is
USE [COERP]
GO
/****** Object: StoredProcedure [dbo].[GetUserLoginName] Script Date: 03/07/2014 12:39:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[GetUserLoginName](
@role varchar(max) output ,
@Username varchar(max)
)
as
begin
select @role = ( Select Name from Newuser where Username=@Username)
end
is there any error in this ??
Sidharth R
7-Mar-14 2:08am
View
Deleted
but im getting the out put as @role ?? not the value inside that ..!!
Sidharth R
7-Mar-14 1:45am
View
Deleted
You mean like this ??
DECLARE @role varchar(max) output ??
Bt it shows err..!!
Show More