|
You would do this by placing a web browser control on your form, so you can interact with it, and then use the DOM to find your controls and interact with them. Of course, once the page you're working with changes, your code could well break.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
How to run a crystal report and export as pdf and save the pdf in a specific location with Windows Programming
|
|
|
|
|
Hi
Try this code.. may Solve your problem.
Dim warnings As Microsoft.Reporting.WinForms.Warning() = Nothing
Dim streamids As String() = Nothing
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim extension As String = Nothing
Dim bytes As Byte()
bytes = ReportViewer1.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)
Dim fs As New FileStream("C:\ABC.pdf", FileMode.Create)
fs.Write(bytes, 0, bytes.Length)
fs.Close()
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
CrystalReportViewer have options to export the crystal report in different format.
Hope this helps
|
|
|
|
|
I am reading images from a webcam, thru a Belkin F5u208 interface to a USB2.0 port. This works fine. What I need to do is poke around in the actual video data to look for certain events in that video data. I set up the display window as follows:-
hwdc = capCreateCaptureWindow("My Window", ws_child Or ws_visible, 0, 0, 320, 240, MyPicture.hWnd, 0)
Is there an API call which will take either hwdc or MyPicture.hWnd as a parameter and deliver me a real memory pointer as a Long? I can then use this as a ByRef in a procedure and access the data as an array. If no API call, has anyone actually done this, and if so, how?
ChrisM
|
|
|
|
|
enquiries wrote: Is there an API call which will take either hwdc or MyPicture.hWnd as a parameter and deliver me a real memory pointer as a Long?
Not in Windows, no. You'd need the an SDK that works with that camera.
But, a pointer wouldn't do you any good in VB.NET, or since VB.NET doesn't support pointers. C# on the other hand...
|
|
|
|
|
Dave Kreskowiak wrote: Forum:Visual Basic / VB.NET
Subject:Re: How do I get a pointer to the video data buffer when using capCreateCaptureWindow in "avicap32.dll"?
Sender:Dave Kreskowiak
Date:Friday, November 14, 2008 3:39 PM
enquiries wrote:
Is there an API call which will take either hwdc or MyPicture.hWnd as a parameter and deliver me a real memory pointer as a Long?
Not in Windows, no. You'd need the an SDK that works with that camera.
But, a pointer wouldn't do you any good in VB.NET, or since VB.NET doesn't support pointers. C# on the other hand...
Hi Dave,
Thanks for the info - we will use C for the final version, but VB is my "natural" home for messing about, and I can do it in VB6, it is not as picky as the later versions of VB.
What exactly does "hwdc" point to? A structure with pointers?
|
|
|
|
|
enquiries wrote: What exactly does "hwdc" point to? A structure with pointers?
"hwdc" is a handle to a device context. It's not a pointer. The closest equivilent is the Graphics class in .NET.
|
|
|
|
|
Hi Dave,
Yes, I understand that. I am re-reading all about GDI handle tables and how they relate to the user and the referenced object(s). My source is "Windows Graphics Programming - Win32 GDI and Direct Draw" by Feng Yuan (HP), Prentice Hall ISBN 0-13-086985-6. Not exactly bedtime reading, but there are a number of very useful tools which I used previously to identify what was going on (creating spy DLL's, APIMON etc), and some interesting analysis of bitmap operations.
The end result is heading for an embedded XP system running on a PC104 card performing realtime image analysis, so I don't mind bending the rules or creating a "one-off" special DLL.
Thanks again,
Chris
|
|
|
|
|
I created a stored procedure to return data to a data set. The stored procedure has one input param and contains a temp table for processing a couple columns (adding a join in this scenario will not work). I have a
The stored procedure works find and returns a result set as expected.
I attempt to create the new datatable in the dataset by right clicking in the designer and adding a new tableadapter.
I choose existing stored procedure and get to the last screen of the config wizard and get "Invalid object name #tmpStatusHistoryReasons".
Anyone know of a work around for this? Using framework 2.1.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
This is a known issue even in VS2008. Adding the following condition works (even though the code never gets executed):
IF 1=0
BEGIN
SET FMTONLY OFF
END
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I have been trying for weeks now to install VB 2008 on my XP Laptop and I have never been successful...Each time i try it attempts to instal microsoft.net framework 3.5 and this installation goes on for over 6hours without any error watsoever.....i always have to stop the installation.... please I need to know if there are any known issues.....its the express edition though......
|
|
|
|
|
There are known issues where the installation stalls, but few known solutions. See this[^] post for more information and a data collection utility to help MS troubleshoot the problem.
|
|
|
|
|
Hi,
Can anybody please give me idea to replace functions 1. GetFileName 2. GetFile 3. Copy of FileSystemObject with the functions of Windows API.
As I have done using CreateDirectory() of Windows API for the method CreateFolder() of FileSystem.
Thanks,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
This is a complete waste of time. The FSO uses those very same functions itself to do it's job. Like I said yesterday, you're not going to gain any performance benefit from doing this.
|
|
|
|
|
Hi,
Is there any more efficient way of concatenating the strings than using "&" for performance wise. so that I can use them in my frequently called functions.
If possible with two line code snippet or any link.
Thanks a Lot,
Md Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
http://support.microsoft.com/?id=306821
|
|
|
|
|
Hi,
But I need it in VB 6.0 any idea, can u please share with me.
Thanks,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
|
Why do you think performance is degraded due to using & ?
|
|
|
|
|
I might be wrong, but in .NET when you concatenate a string in that manner it creates a new string object ... hence it's better to use stringbuilder, becuase it merely manipulates that object not creating another... however i might be completely wrong
|
|
|
|
|
Yes friend but it is in .Net, but now I want to do same kind of thing in by using VB 6.0. Yesterday I have seen a question which is replied by some one with similar answer, but forgot to notedown the link. Missed it.
Can any of you please help me yaar.
Thanks a Lot,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
You need an external library or your own class do this. VB6 does not have an equivilent to StringBuilder built into it.
|
|
|
|
|
Hi Dave,
I studied yesterday that in some thread some one answered as below
"Its very bad way of creating path, please do it as below" and the code it written over there for concatenating the path, but I have not noted down the link. I guess u were there in the thread, but I am unable to get it from where I got it.
If u can recollect it please help. just a request.
Thanks,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
What the ____ are you talking about?? What does this have to do with string concatenation performance?? And yes, string concatentation is a bad method for building fully qualified filepaths.
|
|
|
|