I can dynamically create an Excel document and populate it with data, but cannot find any code samples for inserting images. There doesn't seem to be any code samples online for doing this, any ideas? Thanks
There's recursive functions all over the place that can traverse folder structures. You could use one of these functions to traverse a folder structure and selectively write html.
When using a datagrid the rendered html table tag contains a rules="all" attribute by default. This attribute creates some pretty ugly table lines in non-IE browsers, is there an attribute of the datagrid control or another method to override this?
My Pocket PC was the default device when debugging, but I switched the default to the Emulator and opted to hide the device selection dialog. Now I want to switch it back (and maybe display the device selection dialog) but can't find where to do it. Thanks
Yes, trying that I get:
Cannot implicitly convert object to System.DateTime!
Appending .ToString() to the end I get:
Cannot implicitly convert string to System.DateTime!
dateTimePicker1.Value obviously needs a date, looks like I need to convert an object or a string to one but I don't know how.
The quoted myDate should have been bracketed, must've been stripped. dr is a DataRow object based on a DataSet created from an XML document. myDate is simply a field with a date value in mm/dd/yy format.
<myTable>
<myRecord>
<myField1 />
<myField2 />
<myDate>9/11/03</myDate>...
I have a dateTimePicker control on a Windows Form, I'd like to set the value equal to a dataSet field. Looks like I need to convert to DateTime, but I'm not sure how. The following errors with 'Cannot implicity convert string to datetime!':
dateTimePicker1.Value =...
I figured it out. Instead of:
for i = 0 to numFields
I should've had:
for i = 0 to numFields - 1
I was just getting confused by the error message. Thanks
I'm trying to loop through a recordset and loop through the fields collection within each record to dynamically write an xml file. For some reason I get an error with:
while not recordSet1.EOF
for i = 0 to numFields ' number of fields in table
Print #1, recordSet1(i).Value
next...
You could do this on the results page:
var1 = request.form("var1")
if var1 = "" then var1 = "%" end if
strSQL = "select * from table where var1 = '" & var1 & "';"
This would replace var1 with a wildcard if using textfields and the user left...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.