|
Hi Paul,
Unfortunately, I have not. I tried following CR tutorials, but can’t make it work. I always end with the same outcome: Main report displays, sub reports stay blank.
Any suggestions will be greatly appreciated.
Thanks.
Alex.
|
|
|
|
|
What does the data binding look like on the subreport? Is it coming from the the main report?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
The main report has two input parameters> 1. a byte needed for an internal enumeration, 2. the starting date for the report. (both of these parameters are also needed for the the sub-reports)
The main report will display detailed by-date sales grouped by state, by city, and by salesman. The sub-reports are to display the city summary for each state. This sub-report is located in the group footer of the city section of the main report.
When using CR2008 I can see every sub-report at then end of each city. This is what I need to accomplish from the vb.net2002 app.
Thanks.
Alex.
|
|
|
|
|
Hi!
I spend lots of time trying to figure out why treeview selected state is not maintained for child nodes. If I am in same page it maintains the state of selected node but when a child node is in selected state and if i try to navigate to another page, it selects the root node instead of child node. below are my codes
page_load events
-------------------------------
If Not Session("propertynode") Is Nothing Then
Debug.WriteLine(Session("propertynode"))--->115/225
propertytn = Me.tvProperty.FindNode(Session("propertynode"))-->nothing
'
Else
propertytn = Me.tvProperty.FindNode(Session("locationid"))--->115
End If
--------------------------------
thanks in advance.
|
|
|
|
|
hi frnds,
I have requirement to convert XML to SGML. I tried searching for any tool but couldn't get any.
Could you suggest any 3rd party tool for this?
Thanks.
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
Isn't XML a subset of SGML?
…as in… XML is already a kind of SGML?
ROFLOLMFAO
|
|
|
|
|
|
You are treating RetrieveList as if it was a string, but it's a reference to an array.
Furthermore, as the variable is null (Nothing in VB), there is no array, so you can't put anything in it or read anything from it.
Why are you trying to loop through an array to create an array? Why don't you just use the Enum.GetNames method to get an array of the names in the enumeration?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I am using retrieveList as an array to hold the list of tables. I want to loop through the enumeration and populate the RetrieveList array with the values in the enumeration. I have seen some examples on how this is done but when i do it i must be doing something wrong because i cant get it to work.
Erica
|
|
|
|
|
I want to loop through the enumeration and populate the RetrieveList array with the values in the enumeration.
And what are you going to do with the values? Turn them into strings, I bet. Why are you trying to recreate something that already exists?
I have seen some examples on how this is done but when i do it i must be doing something wrong because i cant get it to work.
Yes, I explained in my previous post what you are doing wrong...
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
vb.net/.net-framework 1.1
i tried to filter a dataview by date using rowfilter like this:
MyDataview.rowfilter = "YEAR(TDate) = " & date.today.year & " AND MONTH(TDate) = " & date.today.month
but without success. unlike in SQL YEAR and MONTH are not available in rowfilter. is there anything similar in rowfilter to these SQL-commands?
most other commands in rowfilter are similar to SQL too.
|
|
|
|
|
Hi,
I'm building an Async TCP communication software...
I have completed the sender part, but the receiver part is giving me trouble.
This command: socket.beginReceive(buffer,0,buffer.length...) 'the length od the buffer is 1024 bytes. But if the incoming data was larger then that it would produce and error...
So the question is:
How do I handle data that is larger then the receive buffer?
Thank You!
|
|
|
|
|
Hello!
I am developing an application to display different documents(txt, doc, xls, ppt, pdf files), arrange them on the desktop and scroll through the pages.
I use System.Diagnostics.Process.Start to open the relevant file with the right application. I use then Process.mainWindowHandle to resize, to move and scroll those apps with WinAPI methods.
It works good for documents for which every Process.Start call results in an independent process, e.g. I can open two txt-files in Windows' Notepad and I get two processes displayed in the task manager. I can get the mainWindowHandle of both easily and rearrange them.
But it crashes on mutex apps(right word?). The Microsoft Word Viewer is such a candidate. I open one document foo.doc, the Word Viewer starts a process. Then I start another "instance" of it with a different file bar.doc and it opens the file, but I don't get the right Process object returned, because the first instance(with foo.doc) adds bar.doc to its managed windows.
My code:
Public Overridable Function Start(ByVal x As Double, ByVal y As Double, _
ByVal width As Double, ByVal height As Double) As Boolean
Dim retValue As Boolean = False
Dim fred As ProcessThread
Dim waited As Boolean
_x = x
_y = y
_width = width
_height = height
'Starts the application with the file, ...
_process = Process.Start(_app_path, """" & _file.Path & """")
If Not IsNothing(_process) Then
'...but it crashes as soon as I try to access a member of _process
waited = _process.WaitForInputIdle()
If Not IsNothing(_process.Threads) Then
fred = _process.Threads.Item(0)
retValue = EnumThreadWindows(New IntPtr(fred.Id), _
AddressOf MoveCallback, IntPtr.Zero)
End If
End If
Return retValue
End Function
EnumThreadWindows is a WinAPI call and MoveCallback is a callback for it:
Private Function MoveWindow(ByVal hWnd As IntPtr, ByVal x As Integer, _
ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, _
ByVal bRepaint As Boolean) As Boolean
End Function
<dllimport("user32.dll", setlasterror:="True)"> _
Private Function EnumThreadWindows(ByVal dwThreadId As IntPtr, _
ByVal lpfn As EnumThreadDelegate, ByVal lParam As IntPtr) As Boolean
End Function
Private Function MoveCallback(ByVal hWnd As IntPtr, _
ByVal lParam As IntPtr) As Boolean
Dim screenwidth As Integer = Screen.PrimaryScreen.WorkingArea.Width
Dim screenheight As Integer = Screen.PrimaryScreen.WorkingArea.Height
Return MoveWindow(hWnd, 0, 0, 1, screenwidth / 2, screenheight / 2, True)
End Function
</dllimport("user32.dll",>
Do you know how to access to the last instance of a running process? Am I trying to do something stupid?
Please help me. I am experienced with VB.Net and I have done a lot of maintenance work, but I am completely new to WinAPI calls.
Regards, Thomas
I am on .Net 1.1
|
|
|
|
|
Hi,
I am creating a website which will consist of a dedicated page for each city and town in the country (so a few thousand potentially). The keywords in each page will be the same apart from the city or town name. Rather than create each page manually by hand , is there something in the .NET framework which will help insert text into a HTML file, therefore speeding up this process?
Thanks in advance
Adrian
|
|
|
|
|
BungleBonce wrote: I am creating a website which will consist of a dedicated page for each city and town in the country (so a few thousand potentially).
Are you sure this is the best solution? Have you considered developing a simple content-management system, storing your page content in an external source e.g. database or XML files? You could then develop an ASP.NET website to display the data, dynamically fetching the content for a particular city/town as required.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks Paul.
I could be wrong here, but by having some static pages on a website is more beneficial for Search Engine Optimisation. I still plan to have dynamically generated content on each page, but as far as keywords and title tags etc, these would be static HTML. I've read that search engine indexing does not like pages with lots of querystring parameters in the URL.
The site I'm working on will only be a success if it can rank highly on search engine results, so I am conscious of making the site as Search Engine friendly as possible.
Any thoughts?
Thanks
Adrian
|
|
|
|
|
Search engine optimization isn't a subject I'm particularly familiar with. However a quick Google[^] search threw up some interesting articles. Url rewriting appears to be a recommended technique for optimizing dyamically generated web pages with search engines.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I want to show the query result in Html table view directly..
with this sql statements we can make html table view for 'select * from tab'..It is working in Oracle Console..How Can I execute it in VB.net
SET markup HTML ON
spool INDEX.html
SELECT * FROM tab;
spool off
SET markup HTML off
|
|
|
|
|
Please don't cross post. Pick one forum that is relevant.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I wamt the URL of my project to be "http://project1" irrespectives of the pages u visit in the project...Howis it possible...
|
|
|
|
|
In your Global.asax , I believe you need to add the following :-
protected Sub Application_BeginRequest(ByVal sender as Object, ByVal e as System.EventArgs)<br />
<br />
Dim incoming As HttpContext = HttpContext.Current<br />
incoming.RewritePath("http://Project1") <br />
<br />
End Sub
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
It shows an error that the virtual path "http://project1" doesnt exist
|
|
|
|
|
I am using to forms (Transactions Form and ProductList Form)
The transactions form is a parent form and there is a button to show the productlist form which shows all the available products in a gridview control.I am using showdialog method to open the productlist form.Once the productlist form is open then user can not do anything on the parent form unless he close the productlist form which I think is clear from showdialog method.
Now what I want is that when user select any row from the datagridview from productlist form and click ok button then the value of the first column of the selected row should be updated in the parent form's textbox (txtProduct) and the productlist form will be closed.
The datagridview on the productlist form is bound to a datatable.
Any idea how I can pass the value from the child form to parent form?
Thanks in advance
Ejaz
|
|
|
|
|
Someone may suggest modifying the constructor of the forms, or having a method to pass the data, etc. However, Pete O'Halon with slap anyone that suggests that. You should implement the Model-view-controller design pattern.[^] Read up on it. It'll make you a better "developer"
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
This is help for u..
use this stmt in child window javascript
window.returnValue=document.getElementById('<%=hfldConCatStr.ClientID%>').value;
use this in parent window
var retVal=window.showModalDialog('dsfdf.aspx');
|
|
|
|