|
Hello frnds,
i am converting the word file the word file to html in vb.net2.0, the conversion is successful but the Headers and footers of the word document are not dispay in html document ....
why ?????
is i am wrong anywhere ???
If any one have code then plzz tell me ....
plz help
thankx in advance
--koolprasad2006
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
|
i am open a word file by word object and save as it html format but till i does not get the headers and footers in html file
is there any other code????
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Of course not! HTML doesn't support headers and footers.
If you want them, you'll have to write the code to translate the headers and footers of the word document into the formatting that you want in HTML, be it in Frames or if you had to add them to the top and bottom of the page.
|
|
|
|
|
Dear Dave Kreskowiak,
thankx a lot for reply but the problem is how can read a word document page by page.
i know i have to a collect a header and footers of each page and display them in html page, i can do it..but how can i read a word file pagewise...
is there is any code then please tell me...
thankx again for your reply
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
koolprasad2003 wrote: is there is any code
Only if you write it. There's tons of Word Automation examples out there. But, you do NOT wan't to automate Word from inside an ASP.NET application.
All you have to do is Google "vb.net word automation".
|
|
|
|
|
hi
Anybody made a software about Caller Id in any language.
I am made Answering Machine Software in VB6.;P
|
|
|
|
|
u mean somebody is making call on ur fon and u want their number?
|
|
|
|
|
OK. What hardware device is supplying the CallerId information? What port is it connected to on your machine?
|
|
|
|
|
here is my code that is in Class module , its my connection to the clients Table in a ValrollDB in vb6. The Previous Programmer who worked on it, Created a database in Access, and it had its up and downs, so i decided Export it to SQL. it well and working. i can connect and Populate datagrid. Now in my VB form i have a Datagrid and a search textbox and a button , when you click the Button without any search critiria, it will display everything. in the code that the Previous Programmer has wring i only changed the Connection to Point in Sql server. Now when i try to use the Search based Critiria it gives an Error. Here my code in a module, Please tell me what shoudl i change from his code, because i only change the Connection. and it gives an Error that says "The Operation is not alowed when Connection is Open"
+++++++++++++++++++++++
My Code
+++++++++++++++++++++++++
Dim WithEvents adoPrimaryRS As Recordset
Private DoingRequery As Boolean
Public Event MoveComplete()
Private Sub Class_Initialize()
Dim sSQL As String
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseServer
'Connection
CN.ConnectionString = _
"Provider=SQLOLEDb;Password=topology:User ID=sde:Location=SGIICORNETGS01;database = ValRoldb"
sSQL = "Select Name from owner"
Set adoPrimaryRS = New Recordset
'GetOwner
If OpenCN Then
adoPrimaryRS.Open BuiltSQL, CN, adOpenForwardOnly, adLockOptimistic
DataMembers.Add "Primary"
End If
End Sub
Private Sub Class_GetDataMember(DataMember As String, Data As Object)
Select Case DataMember
Case "Primary"
Set Data = adoPrimaryRS
End Select
End Sub
Private Sub adoPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
RaiseEvent MoveComplete
End Sub
Private Sub adoPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Public Property Get EditingRecord() As Boolean
EditingRecord = (adoPrimaryRS.EditMode <> adEditNone)
End Property
Public Property Get AbsolutePosition() As Long
AbsolutePosition = adoPrimaryRS.AbsolutePosition
End Property
Public Sub Requery()
adoPrimaryRS.Requery
DataMemberChanged "Primary"
End Sub
Public Sub MoveFirst()
If Not adoPrimaryRS.EOF And adoPrimaryRS.BOF Then
adoPrimaryRS.MoveFirst
End If
End Sub
Public Sub MoveLast()
If Not adoPrimaryRS.EOF Or Not adoPrimaryRS.BOF Then
adoPrimaryRS.MoveLast
End If
End Sub
Public Sub MoveNext()
If Not adoPrimaryRS.EOF Then adoPrimaryRS.MoveNext
If adoPrimaryRS.EOF And adoPrimaryRS.RecordCount > 0 Then
Beep
'moved off the end so go back
adoPrimaryRS.MoveLast
End If
End Sub
Public Sub MovePrevious()
If Not adoPrimaryRS.BOF Then adoPrimaryRS.MovePrevious
If adoPrimaryRS.BOF And adoPrimaryRS.RecordCount > 0 Then
Beep
'moved off the end so go back
adoPrimaryRS.MoveFirst
End If
End Sub
The error will point the Connection lines.
Help
-- modified at 2:53 Friday 18th May, 2007
-- modified at 3:05 Friday 18th May, 2007
Vuyiswa
|
|
|
|
|
Vuyiswamb wrote: CN.ConnectionString = _
"Provider=SQLOLEDbassword=topology:User ID=sde:Location=SGIICORNETGS01;database = ValRoldb"
Your connection string is bad. You put in colons where there should be semi-colons. This is the correct format for the connection string:
Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
You might also want to REMOVE the username and password from your posts in the future! Nothing like giving away the keys to the kingdom...
|
|
|
|
|
Can anyone send me the source code for designing a timed demo.ie it should be a trial version and show message like ,The application will expire in 30 days and should show reminders for 20/10/5 days.Thanks in advance.
|
|
|
|
|
i did this with the hepl of Registry.
Like at the first execution of the application , it will write the values into registry.then next time it will continue executing the same , until it reach the expiry date.
|
|
|
|
|
Can u send me some source code ont his.Like which events are being handled and how are u checking and writing to registry etc
|
|
|
|
|
|
i have the following code in c#
can i get it converted into VB.net ?
DllImport("ODBCCP32.dll")
private static extern bool SQLConfigDataSource(IntPtr parent, int request, string driver, string attributes);
|
|
|
|
|
Google and you will find web sites that convert small bits of C# to VB.NET and vice versa.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can u provide any link that converts mere this chunk of code.
-- modified at 3:28 Friday 18th May, 2007
|
|
|
|
|
Google not working where you are ?
www.pinvoke.net may even have the pinvoke signature that you're looking for.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i was expecting the link . I tried but in Vain
|
|
|
|
|
Christian is trying to tell you to Google it so you're not so helpless every time you run into a problem or a piece of code you need translated. Without the ability to do research, you won't last very long in this business. Why is it so hard to type "convert c# to vb.net" into Google?
The 2nd one down in this list[^] is probably one of the best out there.
|
|
|
|
|
As others have indicated, converters are quickly obtained via a quick googling.
That said.. some of the free online converters fail on this particular conversion.
It should convert to:
<dllimport("odbccp32.dll")> _
Private Shared Function SQLConfigDataSource(ByVal parent As IntPtr, ByVal request As Integer, ByVal driver As String, ByVal attributes As String) As Boolean
End Function
Note that the older 'Declare' style is also possible, but the 'empty shared function' approach is consistent with other .NET languages.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
For some reason the forum software is omitting the attribute.
It should have an attribute containing "DllImport("ODBCCP32.dll")"
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
hi........
hoiw to use public access specifiers in functions...
vb.net
thnaks & regards
|
|
|
|
|
Public: Gives variable public access which means that there is no restriction on their accessibility
Private: Gives variable private access which means that they are accessible only within their declaration content
Protected: Protected access gives a variable accessibility within their own class or a class derived from that class
Friend: Gives variable friend access which means that they are accessible within the program that contains their declaration
Protected Friend: Gives a variable both protected and friend access
Static: Makes a variable static which means that the variable will hold the value even the procedure in which they are declared ends
Shared: Declares a variable that can be shared across many instances and which is not associated with a specific instance of a class or structure
ReadOnly: Makes a variable only to be read and cannot be written
access-specifier sub FunctionName()
End Sub
-- modified at 2:38 Friday 18th May, 2007
|
|
|
|