|
Hello,
I have a problem with the WebFile type:
Dim myFile As WebFile
and i get the error:
Type 'WebFile' is not defined.
Anyone could help please?
thanks.
|
|
|
|
|
There's no such thing as WebFile . What are you trying to do?
|
|
|
|
|
i'm not trying to do anything, i picked up an existing code that is supposed to save a webpage into text, archive, complete, etc. and its not working because of this error... i got the code from here
If you can please check it out cuz i really need it
Thanks
|
|
|
|
|
Then you should ask the question in the forum provided by the article. If you download the article code, does it run ? It probably contains the class you can't find.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i alerady downloaded the code, tried to build it and run it, but the only build error this one, and i searched the whole code trying to find this class but i couldnt.
With msdn, there is something called WebFile object in the Microsoft VBA reference (here) , but its not clear because its not mentionned to which class or reference it belongs.
|
|
|
|
|
The class you're loking for is in ExternalFile.vb in the demo project.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks alot, in the version i downloaded this file was missing.. i searched the web and i found a complete version... i'll try it now..
thanks again
|
|
|
|
|
Works Perfectly, thanks again
|
|
|
|
|
I would like to total one of the datagrid row columns cells based on a code in another column cell in the same row.
Can anybody help ???
silver-gray
|
|
|
|
|
grid.rowcount()
nothing is impossible.....
|
|
|
|
|
I could be wrong, but I think that your answer will only count the number of rows in a datagrid. By running total, I mean total the value of a cell based on a value of another cell(column) in the row.
silver-gray
|
|
|
|
|
How can you set the datasource for a vb report in code?
|
|
|
|
|
How can you use textbox values on a form to populate a vb report? The textbox values are not bound to a database.
|
|
|
|
|
dptalt wrote: How can you use textbox values on a form to populate a vb report?
Do you mean a Reporting Services report? You can pass values from text boxes as paramters to an RS report.
|
|
|
|
|
I mean the report that has 'rdlc' as the file extension.
|
|
|
|
|
A simple way to do this would be to make these textbox values parameters to your report and report viewer will display texboxes for the user to provide values.
There are heaps of examples using report viewer at:
http://www.gotreportviewer.com/[^]
If you don't want to do it this way I would suggest you look up some help on using parameters with reports. There are some decent examples for using rdlc on MSDN.
|
|
|
|
|
Thanks for the info, that website is a good one.
For the solution to my problem: I found code on how to set the datasource of a rdlc report in code. In my application I'm using an SDK to query quickbooks for information that is return in a datatable. I can set the report datasource in code to this datatable and the report prints.
Thanks for your help!
|
|
|
|
|
Hello I was wondering if someone can please help me. I've written a vb.net program and have text displayed in a listview. The text is longer than my listview control but I don't want to drag out the box to make it bigger (I hope you all know what I'm trying to say). So my question: is there a way to scroll left to right in a listview to view the contents that may otherwise be longer than the size I have made my listview control? I've looked in the properties and could not find anything, for example for a listbox there is a property you can set it to scroll. Any help would be greatly appreciated. Thanks in advance. Sorry for the long question!!
|
|
|
|
|
There should be a listview property called 'Scrollable' that you can set to True.
David
|
|
|
|
|
Hello David, thanks for your advice. Unfortunately though, I've got that (the scrollable property) set to true and it still doesn't work. Thanks for responding though!
|
|
|
|
|
I have a listview that I'm using on a form and so far I've only needed to scroll left/right as my test database only have a few records in it. I ran a test and turned that property off and the scroll bar disappears..so that has to be at least part of it. What does your listview look like? If you'd like, post your listview properties and I can try to compare them to the one I'm using.
David
|
|
|
|
|
Hello-
I am trying to determine the index number of an item being hovered over in a combobox. So, as the
mouse moves over each item in the combobox, I determine that items index. Does anyone have a way of accomplishing this ?
I appreciate your help
Shawn
|
|
|
|
|
Could you use the 'mouseover' event or the 'selectedindexchanged' event and then just make a variable = to the combobox.selectedindex?
David
|
|
|
|
|
I have a webpage that grabs records associated with a user id. It places the records into a GridView field. I am trying to figure out how to add two calendars to allow the user to only retrieve records between the two dates they select.
NOTE:
For some reason all of my code is not showing up in this message.
If you view the source of this message it shows up in browser
Here is my code:
<br />
<form runat="server" action=""><br />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" CellPadding="4" ForeColor="#333333" GridLines="None" Width="634px"><br />
<Columns><br />
<asp:HyperLinkField DataNavigateUrlFields="Ticket_ID" DataNavigateUrlFormatString="viewtickets.aspx?ticket={0}" Text="View" /><br />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" /><br />
<asp:BoundField DataField="Ticket_ID" HeaderText="Ticket_ID" SortExpression="Ticket_ID" /><br />
<asp:BoundField DataField="Dig_Street" HeaderText="Dig_Street" SortExpression="Dig_Street" /><br />
<asp:BoundField DataField="State" HeaderText="State" SortExpression="State" /><br />
</Columns><br />
<AlternatingRowStyle BackColor="Gainsboro" ForeColor="#284775" /><br />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" /><br />
<EditRowStyle BackColor="#999999" /><br />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /><br />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /><br />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
</asp:GridView><br />
<br />
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TicketsConnectionString %>" SelectCommand="SELECT [Date], [Ticket_ID], [Dig_Street], [State] FROM [EMAIL_Tickets] WHERE ([UserID] = @UserID) ORDER BY [Date] DESC"><br />
<SelectParameters><br />
<asp:QueryStringParameter Name="UserID" QueryStringField="usr" Type="String" /><br />
</SelectParameters><br />
</asp:SqlDataSource><br />
</form><br />
|
|
|
|
|
Hi,
I have a CheckBoxList in a DataGrid. It doesnt let me input something like:
Me.chkList.DataSource OR Me.DataGrid.chkList.DataSource
Any Ideas?
Thanks.
|
|
|
|