HP LaserJet 1018 Works; HP OfficeJet Pro K550 Does Not; Margin Difference?
Mar 23, 2011
Today I went to the user's site for a demo. The program works fine on my HP LaserJet 1018. Data is entered into a RichTextBoxPrintCtrl and then printed on one of four labels as selected by the user at print time. For the top left (landscape) label, I set margins (50, 570, 60, 460) on the DefaultPageSettings and it correctly prints a label starting 0.5" from the left and 0.6" from the top.
On the HP OfficeJet Pro K550, the label size, left to right and top to bottom, is correct but the top mrgin is about 0.75" and the left margin is 1.0". So the label looks correct but shifted right and down so of course it does not print ont he label. I used MS Word 2003 and printed a document with 0.5" margins all the way around and it worked.I found an options in the printer's advanced properties to "minimize margins" and another to "emulate laser printer margins" but neither had any effect on my output.
View 7 Replies
ADVERTISEMENT
Oct 7, 2011
I'm trying to find a good VB.net example of setting a LaserJet to Duplex.
View 1 Replies
Dec 19, 2009
i have one page and the record about 40 rows in cell datagridview.
Who can teach me ...
1. if more than 40 rows ..go to new pages including headerText
2.how to using..... e.Grapics.DrawingString(????e.margin+++++)
3.i not understand e.marginbound.left ?
View 7 Replies
Jan 29, 2011
I can print and almost everything works. Basically I used KB 811401 to create a RichTextBoxPrintCtrl.dll and add it to my tool box. I have a Page Setup and a Page Print. I call Setup and change the margins. Then I call print. But I always get default margins. The margin settings I put in the Page Setup don't "take".
Here is my relavant application code.
Private
Sub btnPageSetup_Click(ByVal
sender As System.Object,
ByVal e
As System.EventArgs)
[Code] .....
View 11 Replies
Jan 29, 2011
So, I'm adding a label programatically and I'm in need of altering the top margin a little bit to the value 8. I can't do that the obvious way, so what's wrong with my thinking?
Dim LabelAdapter As New Label
LabelAdapter.text = "Adapter"
LabelAdapter.Margin.Top = 8
This gives me the error "Expression is a value and therefore cannot be the target of an assignment".
View 1 Replies
Oct 3, 2010
How to Add numbers in the margin for Line numbers Picture Provied As a example
View 3 Replies
Jul 8, 2011
I'm using a sunken label style and back color with a statusbar, no matter what settings I change, like hiding the grip and setting the grip margin to all 0, there's still a section on the right that won't go away. I want my status label to stretch all the way across the statusbar, is this possible?
View 2 Replies
Apr 24, 2012
Currently the image margin is XP default blue.[code]
View 2 Replies
Apr 20, 2009
I've built an app, that draws text to four rectangles on a pre-printed page with a design, I'm wondering what the margin refers to?
Also our printer doesn't print all the way to the edge, there's a white border, about the height of this little guy:If I printed from a printer that prints to the edge, will the text be in the same position as it would be if it was printed with the border around it, the text should be in the exact same position right?
View 2 Replies
Sep 7, 2010
1. How to get 0 padding/inner margin in the cells? I want just the border as a colored line at the next close pixel to the control in the cell. Or if border set to none, I want the controls with no gap.
2. How do I actually add/remove rows& columns? I thought this was by setting the .ColumnCount property, but if I set it to 3, and then try to access the third column, it gives exception, so it's obviously just two columns, although it also looks like 3 on the form. ? I created it in designer with 2 columns though. But I don't understand how this hangs together..
Dim z0, z1, z2 As New ZedGraphControl
z0.Dock = DockStyle.Fill
z1.Dock = DockStyle.Fill
[code]....
View 3 Replies
May 9, 2012
I am trying to display a small icon in a combobox so I want to use EM_SETMARGINS to set a margin in it. I am using this
Private Sub SetLeftMargin(ByVal lhWnd As IntPtr, ByVal lMargin As Int32)
Dim lLongValue As Int32
Dim Result As Int32
Result = SendMessageLong(lhWnd, EM_SETMARGINS, EC_LEFTMARGIN, lMargin)
End Sub
It works OK with a ritchtextbox but not with the combobox text field.
View 5 Replies
Jun 25, 2012
I've used the following code, taken from here, to create my own custom column for datagridview, so that I can now have images and text in the same cell:
[Code]...
It works very well, except that the image that I use is right at the edges of the cell. I'd like to give it a small margin. How can I do this?
View 1 Replies
Nov 11, 2011
I'm using VB2008 Express. And I've been working on a "popup" to select a date range. The DateTimePicker isn't ideal because the purpose is to pick a date range, which will always be one full week, from Sunday through Saturday. The control works just fine and I'm pretty proud of it. My problem has to do with the border added when using ToolstripControlHost for this. I've included a screenshot and my code.
In the code below, assume there exists a button named "btnTimePeriod", below which I desire to show a panel, which contains a few custom items, and the panel's name is "pnlDateRangePicker".IT WORKS... but it doesn't look right. The panel itself is 147 x 326 pixels, but notice in the attached graphic that it's adding a border around the panel which I don't want. There's a border on the top, bottom, and left... but for some reason the border on the right one is especially large. Although my code doesn't expressly set it, AutoSize = true so I would have expected it to shrink around the panel.
As required, my code already does set ShowCheckMargin and ShowImageMargin false. I haven't included the code for the DrawDateCalander Sub because it's not relevant. I believe even a blank panel would yield the same result. I have no idea where this margin is coming from.
Private Sub btnTimePeriod_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTimePeriod.Click
Call DrawDateCalendar(DatePart(DateInterval.Month, FirstDisplayedSunday), DatePart(DateInterval.Year, FirstDisplayedSunday))
Call ShowControlBelow(btnTimePeriod, pnlDateRangePicker)
End Sub
[code]....
View 1 Replies
Aug 3, 2011
It seems when I change some code while working with practice files I get green veritcal lines in the left margin of the code page I am writing. What does it mean?
View 1 Replies
Jun 5, 2009
I have created a vb.net program to write into msword file.I have used xslt for that.Now i have a problem of margin setting in the word file.what is the code to be inserted in xslt to set the margin of msword file.[code]
View 2 Replies
Aug 7, 2009
I came across a post a while back which showed a custom rich textbox control which had line numbers in its margin. Similar to what you woudl see if you we coding in the VB designer and you had your line numbers viewable.
I think it was two controls in one (i.e. two textboxes: one for the numbers, and the other for the text). However I cannot remember where I saw it.
View 2 Replies
Jan 5, 2012
I have a spreadsheet with this code:
'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)
[CODE]...
When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?
View 2 Replies
Jun 26, 2010
this is my code:
Dim WB As WebBrowser
WB = GetPage("http://speed.travian.ir/a2b.php?z=" + VillageID.ToString + "&c=" + Type.ToString + "&" + AttackParams)
[code].....
View 9 Replies
Feb 26, 2012
I have created lots of applications with visual basic 2008, tested them on many other computers, worked like a charm. After I moved to 2010, all my applications compiled, ran without a problem even on different machines (worst case scenario was that some older PCs needed the 4.0 framework to be installed first). Anyway suddenly I ran into a very weird problem which I cant figure out.I have Visual C# 2008 (Express Edition) on this machine installed and everything ran/compiled flawlessly but when I tried the application on a different computer, it can't even start. It crashes as soon as you attempt to run it and displays that 'Application Stopped Working' error.
I also tried to compile it as Release, then start the exe .. still the same problem. Sorry again for asking this on a VB forum, I just started playing around with C# after VB and didn't know where to ask.Aditional Info: Visual Basic 2008 and 2010 programs work perfectly on the same machines on which Visual C# 2008 doesn't. (I would be glad if some one could at least re-direct me to somewhere else )
View 4 Replies
Jul 21, 2009
UserLogin.zip Starting off with a very simple user database with encryption based on [URL]..Updating to an SQL database WORKS FINE using the SqlDB classes. Updating to a 2003 Access MDB DOES NOT - when I use OleDB Classes. They are almost identical. I am getting an error ""Operation must use an updateable query", but all the articles on this do not seem relevant. I need to get the MDB working.
View 3 Replies
May 10, 2011
I have a COM object that works fine in VB.NET, but not in C#. Both projects are .NET 4 console applications. The COM object loads in C#, but the methods don't return any values. Why would it work in VB.NET and not C#?
[Code]...
View 2 Replies
Nov 9, 2009
I have the following code written in VB. It works in VB 2008 Express But not VB .Net 2003?
View 3 Replies
Mar 30, 2011
I just completed my app and used advanced installer to make a setup of it, i sent it to my brother for him to test but when he runs it and tries to sign in he gets these errors
[code]...
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.now i think it means that it cant find the mysql connecter and data and stuff but the user shouldn't need to have that right? it should come with the app to make it work for everyone
View 1 Replies
Aug 17, 2009
does ADO works on VB 2008 ?i have this error when i tries to run this code
'Item' is 'ReadOnly'
and below is my code:
rs.AddNew()
rs!("pwd") = TextBox1.Text (it gives me the error here )
View 4 Replies
Dec 3, 2011
I'm trying to know if the scrollbars (in my case, the horizontal scrollbar) are showed in the main access window. I use GetScrollBarInfo.There are 2 days I'm, searching info about the function and the parameters, but they are hard to find.I can only find general descriptions of the API.I found some constant values in the ApiViewer 2004.
Here is my API-calling code (in a form class-module):
'vede se la scroll bar orizzontale visibile
Dim void As Integer
[code]......
View 8 Replies
Jun 8, 2011
I am a final year computer science student and i was confronted with this topic: Design, development and implementation of an efficient Bandwidth management system. i code with Vb.net and microsoft SQL 2008 as my database engine. honestly i've not written such application before, so i need a guide how the application can be built(especially the interface).please am not asking for the source code(if there is any), i only need a detailed flow on how the application works.
View 2 Replies
Feb 22, 2009
im just wondering how the try statement works. what i want to do is this: allow user to enter link eg "calc.exe" then open that link using shell like this: [code] if the user enters a name that the system doesnt recognises it glitches, so i thought i would try the try statement.
View 5 Replies
Mar 1, 2009
I thought I knew how ViewState worked, but I was wrong.I don't understand why the following ASPX page preserves the value typed into the TextBox after clicking on the Button?(ViewState is disabled for both the page and the TextBox.)
[Code]...
View 2 Replies
May 21, 2009
Not sure if this is the right place to post this, but the VB Script forum seemed only for inet apps. This is a script that runs when a user logs onto windows to map network drives.The PROBLEM: When a user logs into Windows on our network, this script runs, but sometimes it does not work. There is no MsgBox and the network drives do not map. However once Windows is loaded completely to the desktop, you can run the script and it will map the drives.
Does anyone see anything wrong with this code?? I did not write it, but am in charge of finding out why it is woring sporadically.
[Code]...
View 2 Replies
Jun 11, 2011
My curse seems to be SendInput... I have tried many sites and code variations and it never works right... it always returns an error. So can someone just whip together a quick class that has 3 public methods, one for keyboard (that takes a Keys data type) one for mouse, and one for Hardware?
View 7 Replies