how to show pdf file in asp.net c# : Search pdf files for text programmatically Library application component .net windows asp.net mvc vbaref11-part1840

DateDiff (function)
Issue 2.0 June 2002 111
DateDiff (function)
Syntax
DateDiff(
interval
,
date1
,
date2
[, [
firstdayofweek
] [,
firstweekofyear
]])
Description Returns a
Date
variant representing the number of given time intervals between 
date1
and 
date2
.
Comments
The following describes the named parameters:
The following lists the valid time interval strings and the meanings of each. The 
Format$
function 
uses the same expressions.
To find the number of days between two dates, you may use either day or day of the year, as they 
are both equivalent ("d", "y").
Named Parameter
Description
interval
String expression indicating the specific time interval you 
wish to find the difference between. An error is generated if 
interval
is Null.
date1
Any expression convertible to a Date. An example of a valid 
date/time string would be "January 1, 1994".
date2
Any expression convertible to a Date. An example of a valid 
date/time string would be "January 1, 1994".
firstdayofweek
Indicates the first day of the week. If omitted, then sunday is 
assumed (i.e., the constant ebSunday described below).
firstweekofyear
Indicates the first week of the year. If omitted, then the first 
week of the year is considered to be that containing 
January 1 (i.e., the constant ebFirstJan1 as described 
bellow).
Time
Interval
"y"
Day of the year
"yyyy"
Year
"d"
Day
"m"
Month
"q"
Quarter
"ww"
Week
"h"
Hour
"n"
Minute
"s"
Second
"w"
Weekday
Search pdf files for text programmatically - search text inside PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn how to search text in PDF document and obtain text content and location information
find text in pdf image; select text pdf file
Search pdf files for text programmatically - VB.NET PDF Text Search Library: search text inside PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn How to Search Text in PDF Document and Obtain Text Content and Location Information in VB.NET application
how to select text in pdf and copy; find and replace text in pdf
Chapter 1   A-Z Reference
112 IC Scripts VBA Scripting Reference
The time interval weekday ("w") will return the number of weekdays occurring between 
date1
and 
date2
, counting the first occurrence but not the last. However, if the time interval is week ("ww"), 
the function will return the number of calendar weeks between 
date1
and 
date2
, counting the 
number of Sundays. If 
date1
falls on a Sunday, then that day is counted, but if 
date2
falls on a 
Sunday, it is not counted.
The 
firstdayofweek
parameter, if specified, can be any of the following constants:
The 
firstdayofyear
parameter, if specified, can be any of the following constants:
The 
DateDiff
function will return a negative date/time value if 
date1
is a date later in time than 
date2
If 
date1
or 
date2
are 
Null
, then 
Null
is returned.
Example
'This example gets today's date and adds ten days to it. It
'then calculates the difference between the two dates in days
'and weeks and displays the result.
Sub Main()
today$ = Format(Date$,"Short Date")
NextWeek = Format(DateAdd("d", 14, today$),"Short Date")
DifDays# = DateDiff("d", today$, NextWeek)
DifWeek# = DateDiff("w", today$, NextWeek)
s$ = "The difference between " & today$ & " and " & NextWeek
s$ = s$ & " is: " & DifDays# & " days or " & DifWeek# & " weeks"
MsgBox s$
End Sub
Constant
Value
Description
ebUseSystem
0
Use the system setting for 
firstdayofweek
.
ebSunday
1
Sunday (the default)
ebMonday
2
Monday
ebTuesday
3
Tuesday
ebWednesday
4
Wednesday
ebThursday
5
Thursday
ebFriday
6
Friday
ebSaturday
7
Saturday
Constant
Value
Description
ebUseSystem
0
Use the system setting for 
firstdayofyear
.
ebFirstJan1
1
The first week of the year is that in which January 
1 occurs (the default).
ebFirstFourDays
2
The first week of the year is that containing at 
least four days in the year.
ebFirstFullWeek
3
The first week of the year is the first full week of 
the year.
C# PDF File Compress Library: Compress reduce PDF size in C#.net
TIFF files compression and decompression method and Image files compression and images size reducing can help to reduce PDF file size Embedded search index.
how to search a pdf document for text; pdf search and replace text
C# Create PDF Library SDK to convert PDF from other file formats
a PDF document in C#.NET using this PDF document creating toolkit, if you need to add some text and draw Create PDF Document from Existing Files Using C#.
searching pdf files for text; select text in pdf file
DatePart (function)
Issue 2.0 June 2002 113
See Also
DateAdd
(function).
Platform(s) All.
DatePart (function)
Syntax
DatePart(
interval
,
date
[, [
firstdayofweek
] [,
firstweekofyear
]])
Description Returns an 
Integer
representing a specific part of a date/time expression.
Comments
The 
DatePart
function decomposes the specified date and returns a given date/time element. The 
following table describes the named parameters:
The following table lists the valid time interval strings and the meanings of each. The 
Format$
function uses the same expressions.
Named Parameter
Description
interval
String expression that indicates the specific time interval 
you wish to identify within the given date.
date
Any expression convertible to a Date. An example of a valid 
date/time string would be "January 1, 1995".
firstdayofweek
Indicates the first day of the week. If omitted, then sunday 
is assumed (i.e., the constant ebSunday described below).
firstweekofyear
Indicates the first week of the year. If omitted, then the first 
week of the year is considered to be that containing 
January 1 (i.e., the constant ebFirstJan1 as described 
bellow).
Time
Interval
"y"
Day of the year
"yyyy"
Year
"d"
Day
"m"
Month
"q"
Quarter
"ww"
Week
"h"
Hour
"n"
Minute
"s"
Second
"w"
Weekday
.NET PDF Document Viewing, Annotation, Conversion & Processing
Merge, split PDF files. Insert, delete PDF pages. Read PDF metadata. Search text content inside PDF. Edit, remove images from PDF. Add, edit, delete links.
how to select all text in pdf file; how to select text in a pdf
VB.NET PDF - Convert CSV to PDF
C#.NET rotate PDF pages, C#.NET search text in PDF to batch convert multiple RTF files to adobe PDF files. are able to convert RTF to PDF programmatically with VB
convert pdf to word searchable text; how to select text on pdf
Chapter 1   A-Z Reference
114 IC Scripts VBA Scripting Reference
The 
firstdayofweek
parameter, if specified, can be any of the following constants:
The 
firstdayofyear
parameter, if specified, can be any of the following constants:
Example
'This example displays the parts of the current date.
Const crlf = Chr$(13) + Chr$(10)
Sub Main()
today$ = Date$
qtr = DatePart("q",today$)
yr = DatePart("yyyy",today$)
mo = DatePart("m",today$)
wk = DatePart("ww",today$)
da = DatePart("d",today$)
s$ = "Quarter: " & qtr & crlf
s$ = s$ & "Year: " & yr & crlf
s$ = s$ & "Month: " & mo & crlf
s$ = s$ & "Week: " & wk & crlf
s$ = s$ & "Day: " & da & crlf
MsgBox s$
End Sub
See Also
Day
(function); 
Minute
(function); 
Second
(function); 
Month
(function); 
Year
(function); 
Hour
(function); 
Weekday
(function);
Format, Format$
(functions).
Platform(s) All.
Constant
Value
Description
ebUseSystem
0
Use the system setting for 
firstdayofweek
.
ebSunday
1
Sunday (the default)
ebMonday
2
Monday
ebTuesday
3
Tuesday
ebWednesday
4
Wednesday
ebThursday
5
Thursday
ebFriday
6
Friday
ebSaturday
7
Saturday
Constant
Value
Description
ebUseSystem
0
Use the system setting for 
firstdayofyear
.
ebFirstJan1
1
The first week of the year is that in which January 
1 occurs (the default).
ebFirstFourDays
2
The first week of the year is that containing at 
least four days in the year.
ebFirstFullWeek
3
The first week of the year is the first full week of 
the year.
C# PowerPoint - PowerPoint Creating in C#.NET
to Create New PowerPoint File and Load PowerPoint from Other Files. searchable and can be fully populated with editable text and graphics programmatically.
select text in pdf reader; cannot select text in pdf file
C# Word - Word Creating in C#.NET
Users How to Create New Word File and Load Word from Other Files. is searchable and can be fully populated with editable text and graphics programmatically.
search a pdf file for text; how to make a pdf document text searchable
DateSerial (function)
Issue 2.0 June 2002 115
DateSerial (function)
Syntax
DateSerial(
year
,
month
,
day
)
Description Returns a
Date
variant representing the specified date.
Comments
The 
DateSerial
function takes the following named parameters:
Example
'This example converts a date to a real number representing the
'serial date in days since December 30, 1899 (which is day 0).
Sub Main()
tdate# = DateSerial(1993,08,22)
MsgBox "The DateSerial value for August 22, 1993, is: " & tdate#
End Sub
See Also
DateValue
(function); 
TimeSerial
(function); 
TimeValue
(function); 
CDate
CVDate
(functions).
Platform(s) All.
DateValue (function)
Syntax
DateValue(
date
)
Description Returns a 
Date
variant representing the date contained in the specified string argument.
Example
'This example returns the day of the month for today's date.
Sub Main()
tdate$ = Date$
tday = DateValue(tdate$)
MsgBox tdate & " date value is: " & tday$
End Sub
See Also
TimeSerial
(function); 
TimeValue
(function); 
DateSerial
(function).
Platform(s) All.
Platform Notes
16-bit Windows: Under 16-bit Windows, date specifications vary depending on the international 
settings contained in the "intl" section of the win.ini file. The date items must follow the ordering 
determined by the current date format settings in use by 16-bit Windows. 
Named Parameter
Description
year
Integer between 100 and 9999
month
Integer between 1 and 12
day
Integer between 1 and 31
C# Word - Word Create or Build in C#.NET
C#.NET using this Word document creating toolkit, if you need to add some text and draw Create Word Document from Existing Files Using C#. Create Word From PDF.
how to search text in pdf document; search pdf documents for text
VB.NET Create PDF Library SDK to convert PDF from other file
Create writable PDF file from text (.txt) file in VB.NET project. Load PDF from stream programmatically in VB.NET.
search pdf for text in multiple files; cannot select text in pdf
Chapter 1   A-Z Reference
116 IC Scripts VBA Scripting Reference
Day (function)
Syntax
Day(
date
)
Description Returns the day of the month specified by 
date
.
Comments
The value returned is an 
Integer
between 0 and 31 inclusive.
The 
date
parameter is any expression that converts to a 
Date
.
Example
'This example gets the current date and then displays it.
Const crlf = Chr$(13) + Chr$(10)
Sub Main()
CurDate = Now()
MsgBox "Today is day " & Day(CurDate) & " of the month." & crlf & "Tomorrow is
day " & Day(CurDate + 1)
End Sub
See Also
Minute
(function);
Second
(function); 
Month
(function); 
Year
(function); 
Hour 
(function);
Weekday 
(function); 
DatePart
(function).
Platform(s) All.
DDB (function)
Syntax
DDB(
cost
,
salvage
,
life
,
period
[,
factor
])
Description Calculates the depreciation of an asset for a specified 
period
of time using the double-declining 
balance method.
Comments
The double-declining balance method calculates the depreciation of an asset at an accelerated rate. 
The depreciation is at its highest in the first period and becomes progressively lower in each 
additional period. 
DDB
uses the following formula to calculate the depreciation:
DDB =((
Cost-Total_depreciation_from_all_other_periods
) * 2)/
Life
The 
DDB
function uses the following named parameters:
Named Parameter
Description
cost
Double representing the initial cost of the asset
salvage
Double representing the estimated value of the asset at the 
end of its predicted useful life
life
Double representing the predicted length of the asset's 
useful life
period
Double representing the period for which you wish to 
calculate the depreciation
factor
Depreciation factor determining the rate the balance 
declines. If this parameter is missing, then 2 is assumed 
(double-declining method).
DDEExecute (statement)
Issue 2.0 June 2002 117
The 
life
and 
period
parameters must be expressed using the same units. For example, if 
life
is 
expressed in months, then 
period
must also be expressed in months.
Example
'This example calculates the depreciation for capital equipment
'that cost $10,000, has a service life of ten years, and is
'worth $2,000 as scrap. The dialog box displays the depreciation
'for each of the first four years.
Const crlf = Chr$(13) + Chr$(10)
Sub Main()
s$ = "Depreciation Table" & crlf & crlf
For yy = 1 To 4
CurDep# = DDB(10000.0,2000.0,10,yy)
s$ = s$ & "Year " & yy & " : " & CurDep# & crlf
Next yy
MsgBox s$
End Sub
See Also
Sln 
(function);
SYD
(function).
Platform(s) All.
DDEExecute (statement)
Syntax
DDEExecute
channel
,
command$
Description Executes a command in another application.
Comments
The 
DDEExecute
statement takes the following parameters:
If the receiving application does not execute the instructions, IC Script generates a runtime error.
Example
'This example selects a cell in an Excel spreadsheet.
Sub Main()
q$ = Chr(34)
ch% = DDEInitiate("Excel","c:\sheets\test.xls")
cmd$ = "Select(" & q$ & "R1C1:R8C1" & q$ & ")"
DDEExecute ch%,cmd$
DDETerminate ch%
End Sub
See Also
DDEInitiate
(function); 
DDEPoke
(statement); 
DDERequest
DDERequest$
(functions); 
DDESend 
(statement);
DDETerminate
(statement); 
DDETerminateAll
(statement); 
DDETimeout
(statement).
Platform(s) 16-bit Windows, 32-bit Windows, OS/2.
Parameter
Description
channel
Integer containing the DDE channel number returned from 
DDEInitiate. An error will result if 
channel
is invalid.
command$
String containing the command to be executed. The format of 
command$
depends on the receiving application.
Chapter 1   A-Z Reference
118 IC Scripts VBA Scripting Reference
Platform Notes
16-bit Windows: Under 16-bit Windows, the DDEML library is required for DDE support. This 
library is loaded when the first 
DDEInitiate
statement is encountered and remains loaded until the IC 
Script system is terminated. Thus, the DDEML library is required only if DDE statements are used 
within a script.
DDEInitiate (function)
Syntax
DDEInitiate(
application$
,
topic$
)
Description Initializes a DDE link to another application and returns a unique number subsequently used to 
refer to the open DDE channel.
Comments
The
DDEInitiate
statement takes the following parameters:
This function returns 0 if IC Script cannot establish the link. This will occur under any of the 
following circumstances:
The specified application is not running.
The topic was invalid for that application.
Memory or system resources are insufficient to establish the DDE link.
Example
'This example selects a range of cells in an Excel spreadsheet.
Sub Main()
q$ = Chr(34)
ch% = DDEInitiate("Excel","c:\sheets\test.xls")
cmd$ = "Select(" & q$ & "R1C1:R8C1" & q$ & ")"
DDEExecute ch%,cmd$
DDETerminate ch%
End Sub
See Also
DDEExecute
(statement); 
DDEPoke
(statement); 
DDERequest
DDERequest$
(functions); 
DDESend 
(function); 
DDETerminate 
(statement); 
DDETerminateAll 
(statement); 
DDETimeout
(statement).
Platform(s) 16-bit Windows, 32-bit Windows, OS/2.
Platform Notes
16-bit Windows: Under 16-bit Windows, the DDEML library is required for DDE support. This 
library is loaded when the first 
DDEInitiate
statement is encountered and remains loaded until the IC 
Script system is terminated. Thus, the DDEML library is required only if DDE statements are used 
within a script.
Parameter
Description
application$
String containing the name of the application (the server) with 
which a DDE conversation will be established.
topic$
String containing the name of the topic for the conversation. 
The possible values for this parameter are described in the 
documentation for the server application.
DDEPoke (statement)
Issue 2.0 June 2002 119
DDEPoke (statement)
Syntax
DDEPoke 
channel
DataItem
value
Description Sets the value of a data item in the receiving application associated with an open DDE link.
Comments
The 
DDEPoke 
statement takes the following parameters:
Example
'This example pokes a value into an Excel spreadsheet.
Sub Main()
ch% = DDEInitiate("Excel","c:\sheets\test.xls")
DDEPoke ch%,"R1C1","980"
DDETerminate ch%
End Sub
See Also
DDEExecute
(statement); 
DDEInitiate
(function);
DDERequest
DDERequest$
(functions);
DDESend
(function); 
DDETerminate
(statement); 
DDETerminateAll
(statement); 
DDETimeout 
(statement).
Platform(s) 16-bit Windows, 32-bit Windows, OS/2.
Platform Notes
16-bit Windows: Under 16-bit Windows, the DDEML library is required for DDE support. This 
library is loaded when the first
DDEInitiate
statement is encountered and remains loaded until the IC 
Script system is terminated. Thus, the DDEML library is required only if DDE statements are used 
within a script.
DDERequest, DDERequest$ (functions)
Syntax
DDERequest[$](
channel
,
DataItem$
)
Description Returns the value of the given data item in the receiving application associated with the open DDE 
channel.
Comments
DDERequest$
returns a 
String
, whereas 
DDERequest
returns a 
String
variant.
Parameter
Description
channel
Integer containing the DDE channel number returned from 
DDEInitiate. An error will result if 
channel
is invalid.
DataItem
Data item to be set. This parameter can be any expression 
convertible to a String. The format depends on the server.
value
The new value for the data item. This parameter can be any 
expression convertible to a String. The format depends on the 
server. A runtime error is generated if 
value
is Null.
Chapter 1   A-Z Reference
120 IC Scripts VBA Scripting Reference
The 
DDERequest/DDERequest$
functions take the following parameters:
The format for the returned value depends on the server.
Example
'This example gets a value from an Excel spreadsheet.
Sub Main()
ch% = DDEInitiate("Excel","c:\excel\test.xls")
s$ = DDERequest$(ch%,"R1C1")
DDETerminate ch%
MsgBox s$
End Sub
See Also
DDEExecute
(statement); 
DDEInitiate 
(function);
DDEPoke
(statement); 
DDESend 
(function);
DDETerminate
(statement); 
DDETerminateAll
(statement);
DDETimeout
(statement).
Platform(s) 16-bit Windows, 32-bit Windows, OS/2.
Platform Notes
16-bit Windows: Under 16-bit Windows, the DDEML library is required for DDE support. This 
library is loaded when the first
DDEInitiate
statement is encountered and remains loaded until the IC 
Script system is terminated. Thus, the DDEML library is required only if DDE statements are used 
within a script.
DDESend (statement)
Syntax
DDESend
application$
,
topic$
,
DataItem
,
value
Description Initiates a DDE conversation with the server as specified by application$ and topic$ and sends that 
server a new value for the specified item.
Comments
The 
DDESend
statement takes the following parameters:
Parameter
Description
channel
Integer containing the DDE channel number returned from 
DDEInitiate. An error will result if 
channel
is invalid.
DataItem$
String containing the name of the data item to request. The 
format for this parameter depends on the server.
Parameter
Description
application$
String containing the name of the application (the server) with 
which a DDE conversation will be established.
topic$
String containing the name of the topic for the conversation. 
The possible values for this parameter are described in the 
documentation for the server application.
DataItem
Data item to be set. This parameter can be any expression 
convertible to a String. The format depends on the server.
Documents you may be interested
Documents you may be interested