|
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.
|
|
|
|
|
|
I want to scan the bluetooth port of my PC for any bluetooth devices nearby.
so that i can send files to those devices.
|
|
|
|
|
Go ahead. All the best.
Seriously, the question is?
|
|
|
|
|
What is stopping you?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
I dont know how to go about it
|
|
|
|