|
I have 4 com-wrapped dlls in my production environment so it works quite well. Let's see your class and makes sure it looks correct. There is also a setting in the project that you have set for com-interoptability.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
actually I don't have idea about how can we add the .cs/.vb(which is created file by svcutil) and app.config file in COMClass ?
|
|
|
|
|
The article that you pointed out in an earlier answer shows you what you need to do to expose the dotnet class to com. This whole thing started because I thought you were familar with dotnet since you are going to have to write your own wcf code to talk to your services(svc files on the web server) anyway. If this is not true, your going to have to do some research on how to either bypass the need for dotnet on the UI side or research how to use dotnet and find a wcf example and adopt it to what you want to do.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Hi, the COM wrapper has the clientproxy.cs, app.config (These 2 are from add service reference in vs 2008), COMClass.vb
When I built, its create the tlb file in vs. 2008.but when I added this type library (.tlb) in visual basic 6.0 and ran it I got the Error
<b>"Could not find the default endpoint element that references contract ' ‘in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."</b>
Here is the application I have created one COM wrapper in VS2008 and added wcf (Add service reference) service ,Did some necessary code to instantiate the object and call methods of WCF service And run it so I got one tlb file in my bin folder which I used in my VISUAL BASIC 6.0 application.
I tried lots for dyanamic proxy and configuration with creating channel factory but not helpful .I will appreciate if someone can help me in....
Thanks
|
|
|
|
|
Hi,
One of my user is having A4 Printer only. But my program required A3 paper size.So how to allow the user to access that report?
Is it possible? Im using VB.Net 2008
Thanks
|
|
|
|
|
Rework your report so it'll fit an A4 size?? Seems kind of obvious to me...
|
|
|
|
|
I don't think it is possible to resize the page of a Crystal Report automatically: that would require repositioning every element on the page, and the resulting layout probably would not look pretty.
A report formatted to a smaller page will print just fine on a larger page. Resize your report to use A4 (which is a much more common size paper anyway) and it will still be useable on an A3 printer.
|
|
|
|
|
As a quick work-around you could print the a PDF Virtual printer, then use Adobe Acrobat Reader to print, as it has options to scale down your PDF to fit available paper sizes.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
One of those "too obvious" solutions but definitely a workaround worth saving. I've been in a similar situation to the OP myself.
|
|
|
|
|
hi all
i'm passing values from texbox to class but vb keep underlining name of a class.name of class is details
code is
dim ibjectdetails as details(txtnumber.text,txtprice)
mey u please solve this
|
|
|
|
|
try:
dim ibjectdetails as NEW details(txtnumber.text,txtprice)
|
|
|
|
|
You may want to pickup a beginners book on VB.NET and work through it. This is very simple stuff you're asking about.
|
|
|
|
|
hi,
hw to pass values from database to sheet contol?
explain detail about sheet control....
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
What is this sheet control ., i think there is no sheet control in VB6
is that a user defined control ???,
Rajesh B --> A Poor Workman Blames His Tools <--
modified on Tuesday, April 13, 2010 4:51 AM
|
|
|
|
|
WHAT "sheet control"?? There's nothing in the standard toolbox that even comes close to what those words suggest.
Any why on this earth are you using VB6 in this day and age??
|
|
|
|
|
I don't know about the OP, but in my house, sheet control is when there is fight over who gets all the blankets. But that's not a VB issue.
|
|
|
|
|
I have an application that needs to be basically a shortcut launcher.
It goes to a shared directory and pulls the file information/icon for all files in the directory. I'm able to get this to display properly in ListView, but I need to be able to double click on the output that is shown in the listview and have it launch the appropriate link (these are all .lnk files).
I'm assuming this is some sort of doubleclick event along with the process.start command but I can't seem to come up with a solution.
This is the code for populating the listview, but what I need is help with the code to make each item double-clickable to launch the links.
In my application I have the form1, lisview1, and imagelist1.
Friend Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim hImgLarge As IntPtr
Dim fName As String
Dim shinfo As SHFILEINFO
shinfo = New SHFILEINFO()
ListView1.LargeImageList = ImageList1
For Each fName In My.Computer.FileSystem.GetFiles("P:\Directory")
hImgLarge = SHGetFileInfo(fName, 0, shinfo, Marshal.SizeOf(shinfo), SHGFI_ICON Or SHGFI_LARGEICON)
Dim myIcon As System.Drawing.Icon
myIcon = System.Drawing.Icon.FromHandle(shinfo.hIcon)
ImageList1.Images.Add(myIcon)
Dim sFilenamewithpath As String
Dim sFilename As String
sFilenamewithpath = fName
sFilename = Mid(sFilenamewithpath, InStrRev(sFilenamewithpath, "\") + 1, Len(sFilenamewithpath))
Dim sfilename2 As String
sfilename2 = Mid(sFilename, 1, Len(sFilename) - 4)
ListView1.Items.Add(sfilename2, nIndex)
nIndex = nIndex + 1
Next
End Sub
|
|
|
|
|
|
Thank you for the link, and I think that may work for me. I'm not real familiar with VS as I've only had an introductory course on it and that was quite some time ago--so please excuse my ignorance.
I did have one problem with the code provided in the link you supplied:
Dim lListItem As ListItem
I get an error stating 'ListItem' is not defined.
Is there a way to resolve that...or what is causing that?
|
|
|
|
|
I resolved this after staying up way too late last night using the following. If anyone is interested I can share further details. But it included adding an additional column (not visible in the large icon view I'm using) and replacing some of the listview_load code above with this:
Dim nIndex As Integer
Dim str(2) As String
Dim itm As ListViewItem
str(0) = sfilename2
str(1) = sFilenamewithpath
itm = New ListViewItem(str, nIndex)
ListView1.Items.Add(itm)
nIndex = nIndex + 1
And adding the following doubleclick event:
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
For Each file As ListViewItem In ListView1.Items
Dim filePath As String = file.SubItems(1).Text
If file.Selected = True Then
Process.Start(filePath)
Else
End If
Next
End Sub
|
|
|
|
|
Glad you got it. When I leave for work, I pretty much detach from electronics, so I didn't see your message until this morning. The link that I sent was specific to VB6, but the ideas were the same. In .NET, they decided to call it ListViewItem instead of ListItem.
You don't actually need to cycle through all of the items, though, to find the selected item. You can just do ListView1.SelectedItems(0) . As long as the ListView's multi-select is set to False, you won't get more than one selected item.
|
|
|
|
|
Hi, i wanna get all requests and responses from a webbrowser inside my app, just like "charles web debbuing proxy(c)" do, but i have no idea how it is done, does anyone know??? thank u.
ps: if u know in other language, answer it anyway... big thanks
Marcus Abrahão
|
|
|
|
|
Yeah, it's writing a proxy server that the browser uses to get all of the URLs requested. Since the proxy does the actual work of requesting the page from the server, it also gets all the responses from the server and forwards them to the browser.
Basically, you need Sockets experience, writing a TCP/IP listener service and HTTP requests.
|
|
|
|
|
Ok, thank u, but i just wanna read some information from a web site... do u know some basic tutorial or something to help me? thanks a lot!!!
|
|
|
|
|
Your description called for a proxy server. There is no simple example of doing this.
|
|
|
|