|
steve_rm wrote: 'Form load event
public sub FormLoad
dim threadSaveXML as new System.Threading(Addressof SaveXML)
threadSaveXML.Start()
Try this code instead:
dim threadSaveXML as new System.Threading.Thread(New ThreadStart(Addressof SaveXML))
threadSaveXML.Start()
Hope it helps !
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
hi all,
i have developed an application in vb6 with ms-sql7, using the dataenvironment reportings i have developed some reports.
The proble is this when i want to print the a report on lazer printer it give me desired result,but when print on a dot-matrix printer it gives me very different result.
Please help me to sort out my problem.
thanks in advance
rmshah
rmshah
Sr. Developer
|
|
|
|
|
r_mohd wrote: it gives me very different result
Vasudevan Deepak Kumar
Personal Homepage
Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
i mean to say, when i use lazer printr it gives me accurate result on A4 paper, but on dotmatrix when i use continue stationery the same report, it resulted me very diffrent. the report start from closer to the top and ends in the middle, rest paper it keep blank and move to the next page,while on A4 size paper on lazer printer it strat after a margin as i desired and end at the bottom.
thanks
rmshah
Sr. Developer
|
|
|
|
|
Sounds like your printer settings are wrong - the non printable margins incorrect?
|
|
|
|
|
Printers will return reports in slightly different formats even though they may be encoded to use A4.
This is just a fact of IT life.
The only way around this is:
.1)Ensure that the you have the correct drivers for the dot matrix.
.2)Design the report for the printer it is being printed on.
.3)Resign yourself to the fact there really is no way around this sort of problem other than tweaking the report layout in your code.
.4)Get rid of the dot matrix and replace it with a laser.
One of my reports produces barcodes on, standard sized, small labels.
Every time my client changes their laser printer I have to tweak the report by a few millimetres.
Good luck...
You always pass failure on the way to success.
|
|
|
|
|
Thanks a lot for your support.
rmshah
Sr. Developer
|
|
|
|
|
hello,,, please help me
How to create sub report in report(.rdlc) not crystalreport using VB.net 2005
Thank's
|
|
|
|
|
Hi
How to setup to two headers in gridview. Top header would cover two columns and second header one column.
........Food
....Bev Hambergers
Thanks
|
|
|
|
|
Try using these codes to make the cells appear as merged:
DataGridView1.AdvancedCellBorderStyle.Left = DataGridViewAdvancedCellBorderStyle.None
DataGridView1.AdvancedCellBorderStyle.Right = DataGridViewAdvancedCellBorderStyle.None
|
|
|
|
|
Hey all, im reading a text file and displaying its output in a textbox. I am also making "Next" and "Previous" buttons so the user can go back and forth at will.
The text file looks like
aaa 333
bbb 444
ccc 555
ddd 888
ggg 111
The forward button works fine but I can't figure out a way to go back to a previous record. Any ideas on how this could be accomplished?
gHoSt
|
|
|
|
|
Hi, for lists that are line oriented (i.e. words don't suddenly wrap and move to another line)
you should consider a ListBox; it is much more flexible and efficient, and it knows how
to scroll every way you want.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
put them in an array and work from i.
Dim Records() as string = file.readalllines("c:\example")
Dim CurrentRecord as Integer = 0
on forward:
if currentrecord < (records.length - 1) then
currentrecord +=1
me.displaytextbox.text = records(currentrecord)
end if
on backward:
if currentrecord >0 then
currentrecord -=1
me.displaytextbox.text = records(currentrecord)
end if
-- modified at 17:22 Saturday 10th November, 2007
|
|
|
|
|
The ANZAC wrote: on backward:
currentrecord +=1
and some boundary checking would be advised too.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
ta, i thought he could do his own boundary checking but i may as well include it hey.
|
|
|
|
|
You people are vb gods, like seriously ... this thing works perfectly .. does the exact thing that I wanted ... but I'm a bit not satisfied ... why? I want to know how this is really working ... I don't understand how it works ... in the conditional statements, what is really being compared?
On forward:
if currentrecord < (records.length - 1) then ...
what does the current line number (currentrecord) have to do with the length of the record (record.length)?
Sorry if i'm annoying ..
gHoSt
|
|
|
|
|
ok so what i did was create the currentrecord variable to keep track of exactly that, the record that is currently open. But how does it find each record? Well...
Dim Records() as string = file.readalllines("c\example")
This line makes a new array of strings (without affecting the contents of the original file), if your not sure what that is, best to google it, but i will explain breify. An array creates an indexed list from a given source that can be quickly an easily accessed.
For Instance, when we did the above line, the array would be visually represented like this.
Records(0) = aaa 333<br />
Records(1) = bbb 444<br />
Records(2) = ccc 555<br />
Records(3) = ddd 888<br />
Records(4) = ggg 111
Notice how the indexing starts at zero. Therefore there is the last item in the list (the fifth) has an index of four.
The Records.length gives us the total amount of items in the list. So...because each item has an index of one less than the amount it is, the last item has the index (records.length - 1) .
So. Say for instance our current record is 4 (ggg 111). When we use the line you asked about it will check if this is less than the final item, and will do the appropriate action. However because it is the final item it will do nothing, as trying to display one more than this would result in an IndexOutOfBoundsException meaning that there is no such item.
If you veiw the statement in full, you see that by the time we get to line 3, the current record integer is equal to 5, which won't work. If an item with the specified index does exist than this is what we call 'within bounds'.
1 if currentrecord < (records.length - 1) then<br />
2 currentrecord +=1<br />
3 me.displaytextbox.text = records(currentrecord)<br />
4 end if
The if statements are basically error prevention, they stop your program crashing when there is no data where you are asking for it.
|
|
|
|
|
Can I limit the options in the 'Export button' of the Report Viewer? How?
Instead of having 'Excel and PDF' in the option, I want it just 'PDF' for the user to save on PDF format only.
OR...
If the 'Export button' is clicked, it will automatically save in the PDF format only after providing the desired filename.
|
|
|
|
|
You can configure the available rendering extensions in your rsreportserver.config file. You can find this in the ReportServer folder where Reporting Services is installed. Change the Extension nodes under the Render section.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Is there a way to change the highlight color of a selected item in a treeview? I've created a mouse hook so that when the mouse is over the treeview, the item the mouse is over is hightlighted, but the is highlightd in gray. I like it highlighted with the system's highlight color.
|
|
|
|
|
I have in my application a subroutine that opens a browse folder so that the user can browse to a specific directory, and load that into a text box. The code is like this:
...
Set shlShell = New shell32.Shell<br />
<br />
Set shlFolder = shlShell.BrowseForFolder(Me.hWnd, "Select a Folder", BIF_RETURNONLYFSDIR)<br />
<br />
textbox_txt.SetFocus<br />
textbox_txt.Text = shlFolder.Items.Item.Path 'places path into text box
Now, my problem is not when the user browses to a path and clicks OK, that returns the path of the directory fine. What the issue is, when the user clicks CANCEL, I get an error: runtime error '91' Object variable or With block not set. Any ideas on how I should handle this? Thanks.
reegan41
|
|
|
|
|
Assuming you are using VB.Net
You need to test the existence of shlFolder
If Not IsNothing(shlFolder) Then
process files
End If
However, you should really be using the .net directory and file info classes to achieve this with a directory browser dialog or openfile dialog!
Quote from Great Outdoors:
its a confident traveller who farts in India
|
|
|
|
|
I have been looking into Delegates and have been working through some tutorials. One snippet that has me confused is:
Delegate Sub MyHandler(Of T)(ByVal sender As T, ByVal e As MyEventArgs)
The (Of T) has me confused, can anyone explain thid please.
Thanks
|
|
|
|
|
|
Hello,
I have a dll that uses a webreference to a client's webservice. On my pc this works correctly. When i try to move the dll to our webservice and try to do a createobject to it via an asp page, I get the following error:
Failure in connecting to xxxxxxxxxxxx: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINNT\TEMP\b6vvurwf.0.cs' could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at RFxxxxxxxxxxx.com.xxxxxxxxxxx.xxxxxxxxx.xxxService..ctor() at RFxxxxxxxxxxx.Connect.HandShake(String sUserID, String sPW)
Anyone seen this error and how do you deploy a dll that has a webreference?
There are 4 files when compiled: dll, tlb, xml, config. I put all of those in the same directory on the server and registered the dll file. so I think all supporting files are there on the server...
Thanks,
Nathan
|
|
|
|