473,756 Members | 5,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pasting to Excel sheet (getting desperate!)

I wrote a class in VB.NET to export the contents of a datagrid to Excel. It
works perfectly on my machine, but it fails on my customers' PCs that have
identical versions of Win XP (SP1) and Excel (SP1) installed.

The error is:
System.Runtime. InteropServices .COMException(0 x800A03EC): Exception from
HRESULT: 0x800A03EC.
at Microsoft.Offic e.Interop.Excel ._Worksheet.Pas te(Object Destination,
Object Link)
at myProject.Excel Writer.ExportTo Excel(DataTable & tbl)
at myProject.frmMa in.btnExportToE xcel_Click(Obje ct sender, EventArgs e)

My complete code for the class is below. Does anyone know what the problem
with the Paste() statement might be?

Thank you!

Eric
''''''''''''''' ''' BEGIN CODE ''''''''''''''' '''
Option Explicit On

Imports System.Text
Imports Microsoft.Offic e.Interop

Public Class ExcelWriter

Public Shared Sub ExportToExcel(B yRef tbl As DataTable)
' This routine copies the contents of a data table, named "dt"
(declared
' Private within this Public class), to the Windows Clipboard in a
tab-
' delimited format. It then creates an Excel spreadsheet and pastes
the
' contents of the Clipboard to the spreadsheet.

If tbl Is Nothing Then Exit Sub

Dim sb As New StringBuilder
Dim row, col As Integer

' Add the title.
Dim ReportTitle As String = tbl.TableName
If ReportTitle.Len gth < 1 Then ReportTitle = "New Report"
sb.Append(Repor tTitle & vbNewLine & vbNewLine)

' Copy column headers.
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Co lumns.Item(col) .ColumnName) Then
sb.Append(tbl.C olumns.Item(col ).ColumnName)
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)

' Copy rows.
For row = 0 To tbl.Rows.Count - 1
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Ro ws(row)(col)) Then
If TypeOf tbl.Rows(row)(c ol) Is DateTime Then
Dim d As DateTime = tbl.Rows(row)(c ol)
sb.Append(d.ToS hortDateString)
Else
Dim NewLine As Char = ChrW(32)

If tbl.Rows(row)(0 ).ToString = "68" AndAlso _
tbl.Columns(col ).ColumnName = "Comments" Then

Dim iii As Integer = 0
End If

' Account for tab and newline chars in string.
Dim rawString As String =
tbl.Rows(row)(c ol).ToString
rawString = rawString.Repla ce(vbTab, " "c)
rawString = rawString.Repla ce(N, " "c)
rawString = rawString.Repla ce(NewLine, " "c)
sb.Append(tbl.R ows(row)(col))
End If
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)
Next

Clipboard.SetDa taObject(sb.ToS tring)

' Create Excel Objects
Dim ExcelApp As Excel.Applicati on
Dim Book As Excel.Workbook
Dim Sheet As Excel.Worksheet
Dim Range As Excel.Range

' Start Excel and get Application object:
ExcelApp = CreateObject("E xcel.Applicatio n")
ExcelApp.Visibl e = False

' Add a new workbook
Book = ExcelApp.Workbo oks.Add
Sheet = Book.ActiveShee t
' NOTE: Excel worksheet name max length = 31.
Sheet.Name = Left(ReportTitl e, 31)
Application.DoE vents()

''''''''''''''' ''' ERROR OCCURS HERE ''''''''''''''' '''
' Paste the Clipboard contents.
Sheet.Paste()

' Format column headers.
Range = Sheet.Rows(3)
Range.Font.Bold = True

' AutoFit Columns
Range = Sheet.Range("A1 ", "IA1")
Range.EntireCol umn.AutoFit()

' Format title.
Range = Sheet.Cells(1, 1)
Range.Font.Bold = True
Range.Font.Size = 14
Application.DoE vents()

' Add date/time created.
Range = Sheet.Cells(2, tbl.Columns.Cou nt)
Range.Value = "Report Created: " & Now.ToString
Range.Font.Size = 8
Range.Horizonta lAlignment = Excel.XlHAlign. xlHAlignRight

' Center title across selection.
Dim cellStart As Excel.Range = ExcelApp.Range( "A1")
Dim cellEnd As Excel.Range = _
DirectCast(Shee t.Cells(1, _
tbl.Columns.Cou nt), Excel.Range)
Dim rng As Excel.Range = _
ExcelApp.Range( cellStart, cellEnd)
rng.Merge()
rng.HorizontalA lignment = _
Excel.XlHAlign. xlHAlignCenterA crossSelection
Application.DoE vents()

ExcelApp.Visibl e = True
End Sub
End Class

''''''''''''''' ''' END CODE ''''''''''''''' '''

Nov 21 '05 #1
3 9924
Just a suggestion, you could remove the dependency on having Excel installed
on the machine you run your program and eleminate the possibility in
differences in the API versions by formatting your data from your datatable
into an html table, then just save the string as .xls, Excel will interpret
the html correctly when the file is opened.

"Eric" wrote:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It
works perfectly on my machine, but it fails on my customers' PCs that have
identical versions of Win XP (SP1) and Excel (SP1) installed.

The error is:
System.Runtime. InteropServices .COMException(0 x800A03EC): Exception from
HRESULT: 0x800A03EC.
at Microsoft.Offic e.Interop.Excel ._Worksheet.Pas te(Object Destination,
Object Link)
at myProject.Excel Writer.ExportTo Excel(DataTable & tbl)
at myProject.frmMa in.btnExportToE xcel_Click(Obje ct sender, EventArgs e)

My complete code for the class is below. Does anyone know what the problem
with the Paste() statement might be?

Thank you!

Eric
''''''''''''''' ''' BEGIN CODE ''''''''''''''' '''
Option Explicit On

Imports System.Text
Imports Microsoft.Offic e.Interop

Public Class ExcelWriter

Public Shared Sub ExportToExcel(B yRef tbl As DataTable)
' This routine copies the contents of a data table, named "dt"
(declared
' Private within this Public class), to the Windows Clipboard in a
tab-
' delimited format. It then creates an Excel spreadsheet and pastes
the
' contents of the Clipboard to the spreadsheet.

If tbl Is Nothing Then Exit Sub

Dim sb As New StringBuilder
Dim row, col As Integer

' Add the title.
Dim ReportTitle As String = tbl.TableName
If ReportTitle.Len gth < 1 Then ReportTitle = "New Report"
sb.Append(Repor tTitle & vbNewLine & vbNewLine)

' Copy column headers.
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Co lumns.Item(col) .ColumnName) Then
sb.Append(tbl.C olumns.Item(col ).ColumnName)
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)

' Copy rows.
For row = 0 To tbl.Rows.Count - 1
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Ro ws(row)(col)) Then
If TypeOf tbl.Rows(row)(c ol) Is DateTime Then
Dim d As DateTime = tbl.Rows(row)(c ol)
sb.Append(d.ToS hortDateString)
Else
Dim NewLine As Char = ChrW(32)

If tbl.Rows(row)(0 ).ToString = "68" AndAlso _
tbl.Columns(col ).ColumnName = "Comments" Then

Dim iii As Integer = 0
End If

' Account for tab and newline chars in string.
Dim rawString As String =
tbl.Rows(row)(c ol).ToString
rawString = rawString.Repla ce(vbTab, " "c)
rawString = rawString.Repla ce(N, " "c)
rawString = rawString.Repla ce(NewLine, " "c)
sb.Append(tbl.R ows(row)(col))
End If
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)
Next

Clipboard.SetDa taObject(sb.ToS tring)

' Create Excel Objects
Dim ExcelApp As Excel.Applicati on
Dim Book As Excel.Workbook
Dim Sheet As Excel.Worksheet
Dim Range As Excel.Range

' Start Excel and get Application object:
ExcelApp = CreateObject("E xcel.Applicatio n")
ExcelApp.Visibl e = False

' Add a new workbook
Book = ExcelApp.Workbo oks.Add
Sheet = Book.ActiveShee t
' NOTE: Excel worksheet name max length = 31.
Sheet.Name = Left(ReportTitl e, 31)
Application.DoE vents()

''''''''''''''' ''' ERROR OCCURS HERE ''''''''''''''' '''
' Paste the Clipboard contents.
Sheet.Paste()

' Format column headers.
Range = Sheet.Rows(3)
Range.Font.Bold = True

' AutoFit Columns
Range = Sheet.Range("A1 ", "IA1")
Range.EntireCol umn.AutoFit()

' Format title.
Range = Sheet.Cells(1, 1)
Range.Font.Bold = True
Range.Font.Size = 14
Application.DoE vents()

' Add date/time created.
Range = Sheet.Cells(2, tbl.Columns.Cou nt)
Range.Value = "Report Created: " & Now.ToString
Range.Font.Size = 8
Range.Horizonta lAlignment = Excel.XlHAlign. xlHAlignRight

' Center title across selection.
Dim cellStart As Excel.Range = ExcelApp.Range( "A1")
Dim cellEnd As Excel.Range = _
DirectCast(Shee t.Cells(1, _
tbl.Columns.Cou nt), Excel.Range)
Dim rng As Excel.Range = _
ExcelApp.Range( cellStart, cellEnd)
rng.Merge()
rng.HorizontalA lignment = _
Excel.XlHAlign. xlHAlignCenterA crossSelection
Application.DoE vents()

ExcelApp.Visibl e = True
End Sub
End Class

''''''''''''''' ''' END CODE ''''''''''''''' '''

Nov 21 '05 #2

<Eric> wrote in message news:eW******** ******@TK2MSFTN GP10.phx.gbl...
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have
identical versions of Win XP (SP1) and Excel (SP1) installed.

The error is:
System.Runtime. InteropServices .COMException(0 x800A03EC): Exception from
HRESULT: 0x800A03EC.
at Microsoft.Offic e.Interop.Excel ._Worksheet.Pas te(Object Destination,
Object Link)
at myProject.Excel Writer.ExportTo Excel(DataTable & tbl)
at myProject.frmMa in.btnExportToE xcel_Click(Obje ct sender, EventArgs e)

My complete code for the class is below. Does anyone know what the problem with the Paste() statement might be?

Thank you!

Eric
''''''''''''''' ''' BEGIN CODE ''''''''''''''' '''
Option Explicit On

Imports System.Text
Imports Microsoft.Offic e.Interop

Public Class ExcelWriter

Public Shared Sub ExportToExcel(B yRef tbl As DataTable)
' This routine copies the contents of a data table, named "dt"
(declared
' Private within this Public class), to the Windows Clipboard in a
tab-
' delimited format. It then creates an Excel spreadsheet and pastes the
' contents of the Clipboard to the spreadsheet.

If tbl Is Nothing Then Exit Sub

Dim sb As New StringBuilder
Dim row, col As Integer

' Add the title.
Dim ReportTitle As String = tbl.TableName
If ReportTitle.Len gth < 1 Then ReportTitle = "New Report"
sb.Append(Repor tTitle & vbNewLine & vbNewLine)

' Copy column headers.
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Co lumns.Item(col) .ColumnName) Then
sb.Append(tbl.C olumns.Item(col ).ColumnName)
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)

' Copy rows.
For row = 0 To tbl.Rows.Count - 1
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Ro ws(row)(col)) Then
If TypeOf tbl.Rows(row)(c ol) Is DateTime Then
Dim d As DateTime = tbl.Rows(row)(c ol)
sb.Append(d.ToS hortDateString)
Else
Dim NewLine As Char = ChrW(32)

If tbl.Rows(row)(0 ).ToString = "68" AndAlso _
tbl.Columns(col ).ColumnName = "Comments" Then

Dim iii As Integer = 0
End If

' Account for tab and newline chars in string.
Dim rawString As String =
tbl.Rows(row)(c ol).ToString
rawString = rawString.Repla ce(vbTab, " "c)
rawString = rawString.Repla ce(N, " "c)
rawString = rawString.Repla ce(NewLine, " "c)
sb.Append(tbl.R ows(row)(col))
End If
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)
Next

Clipboard.SetDa taObject(sb.ToS tring)

' Create Excel Objects
Dim ExcelApp As Excel.Applicati on
Dim Book As Excel.Workbook
Dim Sheet As Excel.Worksheet
Dim Range As Excel.Range

' Start Excel and get Application object:
ExcelApp = CreateObject("E xcel.Applicatio n")
ExcelApp.Visibl e = False

' Add a new workbook
Book = ExcelApp.Workbo oks.Add
Sheet = Book.ActiveShee t
' NOTE: Excel worksheet name max length = 31.
Sheet.Name = Left(ReportTitl e, 31)
Application.DoE vents()

''''''''''''''' ''' ERROR OCCURS HERE ''''''''''''''' '''
' Paste the Clipboard contents.
Sheet.Paste()

' Format column headers.
Range = Sheet.Rows(3)
Range.Font.Bold = True

' AutoFit Columns
Range = Sheet.Range("A1 ", "IA1")
Range.EntireCol umn.AutoFit()

' Format title.
Range = Sheet.Cells(1, 1)
Range.Font.Bold = True
Range.Font.Size = 14
Application.DoE vents()

' Add date/time created.
Range = Sheet.Cells(2, tbl.Columns.Cou nt)
Range.Value = "Report Created: " & Now.ToString
Range.Font.Size = 8
Range.Horizonta lAlignment = Excel.XlHAlign. xlHAlignRight

' Center title across selection.
Dim cellStart As Excel.Range = ExcelApp.Range( "A1")
Dim cellEnd As Excel.Range = _
DirectCast(Shee t.Cells(1, _
tbl.Columns.Cou nt), Excel.Range)
Dim rng As Excel.Range = _
ExcelApp.Range( cellStart, cellEnd)
rng.Merge()
rng.HorizontalA lignment = _
Excel.XlHAlign. xlHAlignCenterA crossSelection
Application.DoE vents()

ExcelApp.Visibl e = True
End Sub
End Class

''''''''''''''' ''' END CODE ''''''''''''''' '''


Start the task manager an select the processes tab. Click on "Image name"
and make sure there's no excel.exe ghost process. Or simply restar the
computer. What's in the datagrid? Does it make any difference if the user
tries to copy something like a single row?

/Fredrik

Nov 21 '05 #3
Thank you so much, Dan! You are truly brilliant. I coded up your idea this
morning, and it works perfectly. It's even much faster than using Interop.

I've had this issue hanging over my head for more than a year, and you saved
my hide. If I had extra money to give, I'd cut you a big fat check. :-)

Eric
"Alien2_51" <da************ ***@monacocoach .removeme.com> wrote in message
news:A6******** *************** ***********@mic rosoft.com...
Just a suggestion, you could remove the dependency on having Excel installed on the machine you run your program and eleminate the possibility in
differences in the API versions by formatting your data from your datatable into an html table, then just save the string as .xls, Excel will interpret the html correctly when the file is opened.

"Eric" wrote:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel (SP1) installed.

The error is:
System.Runtime. InteropServices .COMException(0 x800A03EC): Exception from
HRESULT: 0x800A03EC.
at Microsoft.Offic e.Interop.Excel ._Worksheet.Pas te(Object Destination, Object Link)
at myProject.Excel Writer.ExportTo Excel(DataTable & tbl)
at myProject.frmMa in.btnExportToE xcel_Click(Obje ct sender, EventArgs e)
My complete code for the class is below. Does anyone know what the problem with the Paste() statement might be?

Thank you!

Eric
''''''''''''''' ''' BEGIN CODE ''''''''''''''' '''
Option Explicit On

Imports System.Text
Imports Microsoft.Offic e.Interop

Public Class ExcelWriter

Public Shared Sub ExportToExcel(B yRef tbl As DataTable)
' This routine copies the contents of a data table, named "dt"
(declared
' Private within this Public class), to the Windows Clipboard in a tab-
' delimited format. It then creates an Excel spreadsheet and pastes the
' contents of the Clipboard to the spreadsheet.

If tbl Is Nothing Then Exit Sub

Dim sb As New StringBuilder
Dim row, col As Integer

' Add the title.
Dim ReportTitle As String = tbl.TableName
If ReportTitle.Len gth < 1 Then ReportTitle = "New Report"
sb.Append(Repor tTitle & vbNewLine & vbNewLine)

' Copy column headers.
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Co lumns.Item(col) .ColumnName) Then
sb.Append(tbl.C olumns.Item(col ).ColumnName)
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)

' Copy rows.
For row = 0 To tbl.Rows.Count - 1
For col = 0 To tbl.Columns.Cou nt - 1
If Not IsDBNull(tbl.Ro ws(row)(col)) Then
If TypeOf tbl.Rows(row)(c ol) Is DateTime Then
Dim d As DateTime = tbl.Rows(row)(c ol)
sb.Append(d.ToS hortDateString)
Else
Dim NewLine As Char = ChrW(32)

If tbl.Rows(row)(0 ).ToString = "68" AndAlso _
tbl.Columns(col ).ColumnName = "Comments" Then

Dim iii As Integer = 0
End If

' Account for tab and newline chars in string.
Dim rawString As String =
tbl.Rows(row)(c ol).ToString
rawString = rawString.Repla ce(vbTab, " "c)
rawString = rawString.Repla ce(N, " "c)
rawString = rawString.Repla ce(NewLine, " "c)
sb.Append(tbl.R ows(row)(col))
End If
End If
sb.Append(vbTab )
Application.DoE vents()
Next
sb.Append(vbNew Line)
Next

Clipboard.SetDa taObject(sb.ToS tring)

' Create Excel Objects
Dim ExcelApp As Excel.Applicati on
Dim Book As Excel.Workbook
Dim Sheet As Excel.Worksheet
Dim Range As Excel.Range

' Start Excel and get Application object:
ExcelApp = CreateObject("E xcel.Applicatio n")
ExcelApp.Visibl e = False

' Add a new workbook
Book = ExcelApp.Workbo oks.Add
Sheet = Book.ActiveShee t
' NOTE: Excel worksheet name max length = 31.
Sheet.Name = Left(ReportTitl e, 31)
Application.DoE vents()

''''''''''''''' ''' ERROR OCCURS HERE ''''''''''''''' '''
' Paste the Clipboard contents.
Sheet.Paste()

' Format column headers.
Range = Sheet.Rows(3)
Range.Font.Bold = True

' AutoFit Columns
Range = Sheet.Range("A1 ", "IA1")
Range.EntireCol umn.AutoFit()

' Format title.
Range = Sheet.Cells(1, 1)
Range.Font.Bold = True
Range.Font.Size = 14
Application.DoE vents()

' Add date/time created.
Range = Sheet.Cells(2, tbl.Columns.Cou nt)
Range.Value = "Report Created: " & Now.ToString
Range.Font.Size = 8
Range.Horizonta lAlignment = Excel.XlHAlign. xlHAlignRight

' Center title across selection.
Dim cellStart As Excel.Range = ExcelApp.Range( "A1")
Dim cellEnd As Excel.Range = _
DirectCast(Shee t.Cells(1, _
tbl.Columns.Cou nt), Excel.Range)
Dim rng As Excel.Range = _
ExcelApp.Range( cellStart, cellEnd)
rng.Merge()
rng.HorizontalA lignment = _
Excel.XlHAlign. xlHAlignCenterA crossSelection
Application.DoE vents()

ExcelApp.Visibl e = True
End Sub
End Class

''''''''''''''' ''' END CODE ''''''''''''''' '''

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2702
by: Rajiv | last post by:
HI ALL, actually , i m working in a company having large number of employee , i have two userid and password . on id is from admin group(id given to me by technology manager) of the server and other is simpley the user . my software is based on Lan authentication based i.e. when a user works on my system i find that user using AUTH_USER , i think you will be getting my point . when i login using that admin id it creats the excel sheet...
14
5802
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the SQL DATABASE, probably by the click of a button. Is this possible? & what is the BEST APPROACH for doing this? & also if any links are there do tell those to me too coz I have no idea how to go about doing it.
3
1225
by: TM | last post by:
Is there any way that I can take the records from a datagrid and paste them into an Excel sheet, then print preview or print the sheet ? Is there any way I can sort the sheet before I print it ? Thanks all -- Tony
2
2416
by: surekhads | last post by:
Hi all, I have developed a project for extracting data from a HTML file and export that data to a excel sheet. I am storing that extracted data to the db. And then I am exporting that data to excel sheet. But, the data is getting overwritten in that excel sheet each time. I want to get rowcount from excel sheet & then append new data to that sheet. I tried to connect to excel sheet as a database. But, after that I have no idea how to...
0
1491
by: imtmub | last post by:
Hi All, when i am trying to insert records from excel sheet to wko table in my database. My Excel sheet contains 400 records. I am getting the error message. please check this code and advise me. INSERT .(, ,, , , ,, , , ,, , , ,, , , , , , , , , , ,, , ,
8
3387
ammoos
by: ammoos | last post by:
Hi Friends I am getting the following error when I am trying to read data from an excel sheet using sql script OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error. OLE DB error trace . If I save the excel file in the database server machine, then it will work fine.. I am getting this error message when I save the excel file in any other machine in the network and trying...
4
3537
ammoos
by: ammoos | last post by:
Hi Friends, I need to read data from an excel sheet. I am keeping this excel sheet in a remote machine. I am using OLEDB connection to read the data from this excel sheet. But when I am trying to read the data, then I am getting the error message “It is already opened exclusively by another user, or you need permission to view its data.” I am sure the file is not opened by another user. Then may I know what I have to do for getting permission...
3
5045
kirubagari
by: kirubagari | last post by:
I would like to duplicate the numbers from from excel sheet 1 to excel sheet 2.Kindly help me on this.Sometime its unable to duplicate.. Sub Duplicate Dim oDoc As Object, oSheet As Object, oCell As Object, oCell2 As Object, oCell3 As Object, oString As String Dim oCells As Object Dim oCursors As Object Dim aAddresss As Variant
1
2688
kirubagari
by: kirubagari | last post by:
Hai experts, How to duplicate the data from 1 excel sheet to another excel sheet 2. Lets say Name Voucher Value Voucher Number lee 300.00 58419-58421 meena 300.00 58422-58424 Tan 300.00 58425-58427
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9886
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.