Thanks for the quick reply, the thing is it looks perfect when printed off of my computer. Probably have to just rework it so it prints off on two pages going with the 600px wide, wish there was a way to force it to scale to computers with lower resolution then mine. I developed it on 1600x1200.
gthompson2005
Posts
-
Printing from asp .net -
Printing from asp .netCurious if anyone has found a solution to this problem, or has any pointers to give. I have a ASP .net page, that displays a form for people to fill out. They also have a button to click on to print that uses the javascript on the clientside action. All works fine printing on the computer I developed all this on. But on the client computers the print gets cut off on the right side. As if my form is to wide for a sheet of paper on other pc's , but fine on mine. I'm hoping somebody has ran into this before, it's causing me a headache now. Thanks in advance Gerry
-
Using Controls made for .net 1.1 in 2.0I figured out why it wouldn't work, I wasn't calling a function that would make it visible. Also after contacting the company, they released the .net 2.0 version today for download. Thanks for the responses. Gerry
-
Using Controls made for .net 1.1 in 2.0Hey Hopefully somebody, knows the answer to this problem. I'm needing to use a control that my company had purchased in a asp .net 2.0 web app. Problem is that the control was designed or is for .net v1.1 Is there any way around this or some IIS server configs to change to allow the control to work. In design view the control is present, but when choose to build and run, the control isn't there. Thanks in advance Gerry
-
Vs 2005 ChangeThanks you very much for the quick response, that was exactly what i was looking for, and that fixed what i found to be an annoyance. Gerry
-
Vs 2005 ChangeCurious as to if anybody knows how, or why this is, in VS 2003 visual design was easy, it had a grid you could drag a control to any location. It seems that my vs 2005 i am unable to do this, and I'm just wondering why, everything is setup as if i'm typing a document, and if i drag a control, and want it on the right side of the page, i must space or use a place holder or something. Thanks to anybody knows how to fix this little problem. Thanks Gerry
-
Creating a server toolI'm wanting to start programming in c++ anyhow, so should be a good start for me to have an actual project. I have googled around the world a couple times and found nothing also. Thanks for the help Gerry
-
Error : Class Does not support AutomationI'm not to sure, if it's available , or will work for vb 6, haven't used it for quite sometime, but if you can just add a com control. Look for one Called AxWebBrowser. As that's just a com for IE. Works for what I want it to do in my vb.net coding.
-
Check database structure for select fileWell then your probably going to have some problems, as if each user as the ability to use Access to change the number,name of the tables then it could change at any point, and you'll be getting a call as to why this is happening. I'm not sure about your situation for this purpose, but i would suggest making it to where they can't change the content, and structure of the database without using your program. Then all you have to worry about doing is recognizing the names of tables and having your program act on that. The current situation, seems like it could be quite problematic if the user can change stuff regarding the database file.
-
Sample code for sample database formI would like to add, to have this all take care of it for you. So it'll update I would suggest using the command builder componet. Dim cmb As New OleDbCommandBuilder oDA.SelectCommand = cmd2 Then add your row to the dataset, or modify it's data all you have to call is. oDA.Update(ds) That'll take care of your updates as it automatically fills in the Update, Add, Delete command strings for you. Hope this helps as a suggestion. Gerry
-
Check database structure for select fileIf the file names for each file that the each user will be using are the same. I would suggest having the program recognizing that file name, and acting upon that.
-
Calculate the period in AccessI'm not aware of any function that would automatically do this for you. I think i've seen you post before using vb .net. But for either vb6, vba, vb .net you would have to create your own function that would take this. I use access in my apps, so i know some programming side, Again I don't know of any thing that will automatically take care of that.
-
HotkeysHey This should be a quick question, was hoping this is possible. I have a program , that minimizes to the system tray, I would like though, if the user, wants to push ctrl+a to in which will pull up a form to display. Without making the whole program come up to view. More or less my question is , is it possible to make a hotkey from anywhere in windows, open up a form from my program. Thanks
-
Context Menu'sOk did some testing Here is what I'm going to suggest. Since you are wanting to reuse the creation of these contextmenu's throughout your program, What I did, is create a class library within your project, create your function to create the contextmenu, and return the context menu. Here is what my class looks like Imports System.Windows.Forms Public Class Class1 Public Function createmenu() Dim conMenu As New ContextMenu Dim menuItem1 As New MenuItem menuItem1.Text = "&test" conMenu.MenuItems.Add(menuItem1) AddHandler menuItem1.Click, AddressOf opentest Return conMenu End Function Public Sub opentest(ByVal sender As Object, ByVal e As System.EventArgs) MsgBox("Test for opentest worked") End Sub End Class Make sure, on your Forms, you set reference for this class library, My Form code looks as follows Imports testing_contextmenu.Class1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim conmenu2 As New ContextMenu Dim testing As New testing_contextmenu.Class1 conmenu2 = testing.createmenu() ListView1.ContextMenu = conmenu2 End Sub So I believe the easiest solution would be to create the class library, create your functions to create your menu's, and returrn those as I have done, Hope this helps, or gets ya in the direction you want.
-
Context Menu'sI'm assuming that since the values change based on what radion button is selected, and that you want to display a different context menu based on what is selected. I'd suggest creatting 2 different context menu's in design view, then when a radio button is selected, change the listview.contextmenu property to the respective context menu.
-
Im looking for a vb.net tutorialCheck this out , offered from microsoft http://msdn.microsoft.com/vbasic/atthemovies/
-
Creating a Tiff that is Fax ReadyGlad you get to spend the time you do, helping others. Someday, I'll be able to answer questions, I did some testing on some of what ya gave me, the following throws an error Dim b As Bitmap = New Bitmap(800, 1100, Imaging.PixelFormat.Format1bppIndexed) Dim g As Graphics = Graphics.FromImage(b) This throws the following error Additional information: A Graphics object cannot be created from an image that has an indexed pixel format. Tomorrow I'll grab a image that works, and see what specs I can get.
-
Creating a Tiff that is Fax ReadyDave I'm sure you'll be the one responding so I'll direct towards you, and by the way , I think I can say on behalf of all of us here, you are a great help. I had asked you a question a while back, about printing with forsay the printdocument to a file. Well going the other route of creating the tif image file myself. My problem, is I can create a tiff image file, and it'll open on my home computer, but at work, when I try to open it, or pass it our Biscom Fax Software, it says incorrect format, which I'm sure it's cause it's not compressed right. If you could guide me in the right direction, or tell me what I'm doing wrong, Here as follows is my code Dim b As Bitmap = New Bitmap(800, 1100) Dim g As Graphics = Graphics.FromImage(b) g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality g.DrawString(myuser.username, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 240, 20) g.DrawString(myuser.outsidephone, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 250, 37) g.DrawString(myuser.email, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 185, 53) g.DrawString(" Name : " + TextBox2.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 130) customerinfo = Customerfind(TextBox1.Text) g.DrawString("Company : " + customerinfo.Company, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 150) g.DrawString(" Phone : " + TextBox3.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 170) g.DrawString(" Fax : " + TextBox4.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 190) g.DrawString("Active Part", New Font("Arial", 30, FontStyle.Bold), Brushes.Black, 280, 260) Dim mypos As Integer = 315 Dim index As Integer Dim total As Integer total = ListView1.Items.Count For index = 0 To total - 1 g.DrawString("Part # : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 80, mypos) g.DrawString(ListView1.Items(index).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos) mypos += 20 g.DrawString("Description : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, mypos) g.DrawString(ListView1.Items(index).SubItems(1).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos) mypos += 20 g.DrawString("Price : ", New Font("Arial", 12, FontStyle.Regu
-
OutOfMemoryExceptionThat's how I have my images, in a image list. I can avoid it if I can set the images at runtime, for when it's checked or not checked. You don't have a brief example on how to just set the image for a item in a listview - I have it on details view and checkboxes enabled. Thanks for your help
-
OutOfMemoryExceptionThe Thing is I'm not doing any drawing stuff my self. I've just got a picture box, a listview with images for the checkboxes, and a outlook side bar. I did some more playing around with it last night, When I minimize my form, i have 2 options for the user, to have it minimize to the system tray, or minimize to taskbar. If I have my progam minimize to the system tray, then restore the form, Me.ShowInTaskbar = True Then My images on my listview are no longer there, and all I've got is checkboxes. Minimizing to taskbar, does everything just fine. I'm not understanding what I'm doing wrong Thanks again for your help