Topics
-
- 0 replies
- 555 views
Hai, i am developing an application in which i ahve to provide the print option to print the data. for this they provide me one theral printer Model No ATP-80K here i am able print the data using print dailog but as the printer supports cutting the page but using my code i am unable to cut the page so can any one guide me how to procede this k thank you
Last reply by swteam, -
-
- Administrators
- 2 replies
- 2k views
Hi, I have Visual Studio 2003, Framework 1.1 installed on my PC with several applications developed on this platform. Recently I had installed the trial version of Visual Studio 2008, Framework 3.5 and I want to upgrade this trial version to standard edition. At the same time, I dont want that I stop maintenance of my applications on VS 2003. My question is that if I purchase the upgrade for VS 2008, Framework 3.5 and install it on my pc, will I able to continue using the VS 2003 too. Ultimately, I will "transfer" my VS 2003 applications to VS 2008, but that will take some time. Until then I want to be able to continue development on both versions simultaneously. Do…
Last reply by Boinka, -
-
-
- Administrators
- 2 replies
- 965 views
Hi, I'm having a little problem with the asp.net forms. I have a master page and a default page created from new, I've put; <form id="form1" method="post" runat=server enctype ="multipart/form-data" > <input id="uploadMyFile" type=file runat =server /> <asp:button id="cmdSend" runat="server" Text="Send" onclick="cmdSend_Click"/> </form> on the Default page, but when I run it I get ' You can only have one form tag ', which I can understand, but how do I go about making it so I can upload files using the form on the Default.aspx? .. or is there another way. Thanks
Last reply by Illusion, -
-
-
- Administrators
- Leaders
- 19 replies
- 9.8k views
I know I have to GetBackBuffer... but, that's all I know... Can someone give me a hand on this matter? A need simply to pick the color from a pixel located at a certain x,y position. but from the backbuffer's itself, not from texutures. I already made it work in GDI+, and it works marvelous, but now I need to do it in DirectX. The whole idea is to create pixel precision collision.
Last reply by EFileTahi-A, -
-
-
- Administrators
- 3 replies
- 956 views
I want to insert names into a database. Everything works fine until I want to insert a name with a quote. My insert command is: strSql = "Insert Into Individual (Name, FirstName) Values ('" & strINDIName & "', '" & strINDIFirstName & "')" This works fine when I want to insert a name like: Cain But it does NOT work with: O'Cain
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.2k views
Hello all, I just found a great sample code in MSDN which allows me to read data from Excel files. But however, this is the 1st time I am going to do this, and cannot customize it exactly. I want to open an Excel file, loop through all sheets and read all cells, rows and columns of each sheet one by one. I have 2 samples here, taken from MSDN, but I cannot customize them to go through and show all cells/rows/columns of all sheets! Please help me if you can :) Thanks. Dim conn1 As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ExcelData1.xls;Extended Properties=""Excel 8.0;HDR=YES""") conn1.Open() Dim cmd1 As New System.D…
Last reply by mandelbrot, -
-
- Administrators
- 2 replies
- 1.4k views
I simply can't understand why this does not work... Surface s = dxDevice.GetBackBuffer(0, 0, BackBufferType.Mono); GraphicsStream gs = s.LockRectangle(LockFlags.ReadOnly); It gives me an error when executing the second line of code. I've tryed using many different parameters but, always give me "Error-in-application". Why is this happening?
Last reply by EFileTahi-A, -
-
-
- Administrators
- 7 replies
- 8.7k views
In VB.NET there is the My.Application.CommandLineArgs, but is there any similar class in C# that will watch, what file and where from the application is started ??? I need to compile this to C# Dim Parameter As String If My.Application.CommandLineArgs.Count > 0 Then For Each Parameter In My.Application.CommandLineArgs MsgBox(Parameter) Next End If
Last reply by stumper66, -
-
- 0 replies
- 3.8k views
Hi there. How can you detect whether a header cell has been selected in the 'CellClick' or CellContentClick events? I don't see a 'IsHeaderCell' Property. I would like my code to ignore header cell selection in those events. Thanks, [Edit] Found it. "If e.Rowindex = -1 then Exit Sub" [/Edit] ~T
Last reply by Gruff, -
-
- Administrators
- 2 replies
- 1.3k views
Hello all, I've just been given the task of taking an existing vb.net web application - which works, I should point out - and refactor the codebase into something more maintainable. Looking at the existing codebase is more like.... stairing into a bowl full of alphabet spaghetti. All in code-behind files, no object-orientation applied and full of inconsistencies. My question: I'm a C# developer by trade - I have 1 small project of VB.Net to my name which I wrote 5 years ago... Is there a best practice guideline for syntactically laying out your code? For example: Protected Overrides Sub CreateChildControls() Dim repeaterControl As Repeater = Find…
Last reply by Nate Bross, -
-
-
- Administrators
- 3 replies
- 984 views
Dear All, I'm trying to implement the ICollection(Of T) interface. This would be fairly straight forward, but for some reason there are two implementations of the GetEnumerator function: 'Returns an enumerator to the address... Public Function GetEnumerator() _ As System.Collections.Generic.IEnumerator(Of IAddress) _ Implements System.Collections.Generic.IEnumerable(Of IAddress).GetEnumerator .... End Function 'Returns an enumerator to the IEnumerable interface... Public Function GetEnumerator1() _ As System.Collections.IEnumerator _ Implements System.Collections.IEnumerable.GetEnumerator .... End Function I can understand that the second enumerator …
Last reply by PlausiblyDamp, -
-
- 1 reply
- 977 views
Hi, I am trying to programmatically start up an exe. Here is a basic example of starting up an exe in my application folder which works fine: Process.Start("my.exe", My.Application.Info.DirectoryPath) Here is an attempt to specify the location: Process.Start("my.exe", "C:\Documents and Settings\me\Desktop\new\new\Bin") Which throws an exception, as it cannot find the file. I tried this: If File.Exists(appPath & "my.exe") Then Dim processInfo As New ProcessStartInfo processInfo.FileName = "my.exe" processInfo.Arguments= "C:\Documents and Settings\me\Desktop\new\new\update\Bin" Process.Start(processInfo) End If But again I ge…
Last reply by davearia, -
- 0 replies
- 3.8k views
Hi 2 All, i am export crystal report to pdf and it is working fine but it give me error whenever i pass the parameter at runtime. Error: Code: [b]Missing parameter values. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Missing parameter values. Source Error: Line 29: 'CrystalReportViewer1.ParameterFieldInfo = pram2 Line 30: Line 31: report.ExportToStream(ExportFormatType.PortableDocFormat) Line 32: Line 33: Dim m As Sys…
Last reply by atifarif, -
-
- Administrators
- 5 replies
- 722 views
Hello I have a question that might fall out of this forum scope! But however, a friend in this forum recommended using this free open source ZIP component: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx If anyone worked with that before and knows about it please help me, otherwise, simply disregard it :) This assembly works great, I use it in VB.NET and have no problem adding file to zip archives. But I have problems with extracting files from the archive! Dim MyZip As New ZipInputStream(File.OpenRead(FileTextBox.Text)) Dim EntryObject As ZipEntry = MyZip.GetNextEntry() While IsNothing(EntryObject) = False If EntryObject.IsFile And EntryO…
Last reply by SIMIN, -
-
-
- Leaders
- 6 replies
- 7.7k views
I'm having issues with sprite scaling in XNA. The original file is the size I want the various frames of the sprite sheet, but whenever I want the game engine to draw the texture it requests a "Uniform multiple to scale the height and width" or "a vector to scale the width and height by the x- and y- values". Problem is, telling it 1.0 scales by 100%, 0.0 scales it to 0, effectively erasing it, and scaling by 0.5 makes it roughly the size I want (not perfect), but BLURRY. :/ Any suggestions?
Last reply by cugone, -
-
-
- Administrators
- 2 replies
- 4.1k views
Sorry to bring this up again, but the [PLAIN] [/PLAIN] tags still have a bug relating to the '[' character. Since this character is used for array and object indexing, and for attributes, this is a significant problem. It has been almost five months since syntax colouring was implemented and this problem was highlighted, I just want to check that fixing it hasn't fallen by the wayside. I expect it is easily fixable. For details on the bug see my previous post. Cheers. :cool:
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.2k views
Hello all, I want to save a file, so I show user save file dialog. But when user selects an existing file and confirm its overwrite, I cannot simply set its attribute to normal and delete it, then overwrite it! I have to check if it's not either read only or hidden or system, then delete and overwrite it, am I right? So I use this code to do the check, but it won't work, it always returns that the file is locked, even if the file is archive only! What should I do? If My.Computer.FileSystem.FileExists(SaveFileDialog.FileName) Then If System.IO.File.GetAttributes(SaveFileDialog.FileName) <> FileAttributes.Archive And System.IO.File.GetAttributes(SaveFileDia…
Last reply by MrPaul, -
-
- Administrators
- 1 reply
- 857 views
am developing a webservice here i ahve to give the url to the customer he will add the string to that url so that my service should update the database automatically i am developed a small add method web service which takes two integers as input and gives added value of that this if i take in to my windows application it is working fine but how to test when the user invokes my url it should check for passed value here i am little bit confused which url i need to give to customer whether .asmx file are some thing else please give me idea how to procede.
Last reply by PlausiblyDamp, -
-
-
- *Gurus*
- 2 replies
- 13k views
If you're having problems implementing System.Web.Mail take a look at the following Web site: http://www.systemwebmail.com/
Last reply by davearia, -
-
-
- Administrators
- 5 replies
- 1.1k views
I made an icon for my program a long time ago and was able to set it as the window icon and shortcut icon for the program. Anyway, yesterday I tried to make a better one in photoshop but apparently I must be saving it wrong or something because vb.net is not letting me set it as the icon, the OK button is grayed out when I browse to the new icon. I have attached the photoshop file for the icon: Icon.psd
Last reply by Lanc1988, -
-
Who's Online 0 Members, 0 Anonymous, 43 Guests (See full list)
- There are no registered users currently online