Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am already having doc or docx file here i need to convert Document to PDF for downloading help me
Posted

1 solution

There are several tools available for converting DOC / Docx to PDF...Even online conversion tools are also available. Pls elucidate your requirement.
 
Share this answer
 
Comments
satheeshkumar chinnadurai 3-Jul-15 1:49am    
Azure container having one word document that document need created on run time.
Created document convert to pdf document through c# code Microsoft.Office.Interop.Word this class not supporting in azure
satheeshkumar chinnadurai 14-Jul-15 0:31am    
AND (@CompanyID IS NULL OR (t1.CompanyID = @CompanyID AND t1.CaseStatus!='6D5BD963-2233-4329-BD09-F8C03C12E86E'))
AND (@UserID IS NULL OR (t1.AssignedTo = @UserID) OR ((t1.CreatedBy = @UserID)) OR (t1.CaseID IN (Select CaseID from CaseShares Where IsDeleted=0 AND UserID=@UserID)))
AND (LTRIM(RTRIM(@AssignedTo)) IS NULL OR t1.AssignedTo LIKE LTRIM(RTRIM(@AssignedTo)) + '%')
satheeshkumar chinnadurai 14-Jul-15 3:02am    
-------------------------------

DECLARE @StatDate Datetime
Declare @CurrentDate Datetime
Set @StatDate = '2015-07-13 23:55:32.850'
SET @CurrentDate =GETDATE()
PRINT '@CurrentDate '+ CAST(Convert(VARCHAR(30), @CurrentDate ,120) AS VARCHAR(37))
PRINT 'StatDate '+ CAST(Convert(VARCHAR(30), @StatDate ,120) AS VARCHAR(37))
IF ((SeLECT Convert(VARCHAR(30), @CurrentDate ,120)) < (SeLECT Convert(VARCHAR(30), @StatDate ,120)))
BEGIN
PRINT 'sss'
END
ELSE
BEGIN
PRINT 'aa'
END
Go
satheeshkumar chinnadurai 14-Jul-15 7:56am    
ALTER PROCEDURE sptextsave
@LeaveID int,
@TechinisionID int,
@StartDate datetime,
@EndDate datetime,
@Leavetype int
AS
BEGIN

DECLARE @mErrorNumber AS INTEGER
DECLARE @mAlreadyAppliedCount AS INTEGER
DECLARE @mErrorDescription AS VARCHAR(MAX)


IF (@StartDate < GETDATE())
BEGIN
SET @mErrorDescription='Start Date greater than current date'
RAISERROR(@mErrorDescription,16,1)
RETURN
END

IF (@EndDate < GETDATE())
BEGIN
PRINT Convert(VARCHAR(30),@StartDate ,120)
SET @mErrorDescription='Start Date greater than end date'
RAISERROR(@mErrorDescription,16,1)
RETURN
END
IF (@StartDate = @EndDate )
BEGIN
PRINT Convert(VARCHAR(30),@StartDate ,120)
SET @mErrorDescription='Start Date greater than end date'
RAISERROR(@mErrorDescription,16,1)
RETURN
END
IF (@EndDate < @StartDate)
BEGIN
PRINT Convert(VARCHAR(30),@StartDate ,120)
SET @mErrorDescription='Start Date greater than end date'
RAISERROR(@mErrorDescription,16,1)
RETURN
END

IF (SELECT COUNT(*) FROM text2 WHERE @StartDate BETWEEN StartDate AND EndDate AND TechinisionID =@TechinisionID)>0
BEGIN
SET @mErrorDescription='Start date you have selected already exits between leave period'
RAISERROR(@mErrorDescription,16,1)
RETURN
END

IF (SELECT COUNT(*) FROM text2 WHERE @EndDate BETWEEN StartDate AND EndDate AND TechinisionID =@TechinisionID)>0
BEGIN
SET @mErrorDescription='End date you have selected already exits between leave period'
RAISERROR(@mErrorDescription,16,1)
RETURN
END



IF @LeaveID=0
BEGIN
INSERT INTO [dbo].[text2]
([TechinisionID]
,[StartDate]
,[EndDate]
,[Leavetype]
,[CreatedDate]
,[ModifiedDate])
VALUES
(@TechinisionID,
@StartDate,
@EndDate,
@Leavetype,
GETDATE(),
GETDATE())
END
ELSE
UPDATE [dbo].[text2]
SET [TechinisionID] = @TechinisionID,
[StartDate] = @StartDate,
[EndDate] = @EndDate,
[Leavetype] = @Leavetype,
[ModifiedDate] = GETDATE()
WHERE LeaveID =@LeaveID
END
GO
satheeshkumar chinnadurai 20-Jul-15 0:56am    
AND ((@FromCallDateTime IS NULL AND @ToCallDateTime IS NULL)OR (t1.CallDateTime) BETWEEN Convert(DateTime,@FromCallDateTime) AND Convert(DateTime,@ToCallDateTime))

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900