You are not logged in.

Search results

Search results 161-180 of 325.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tuesday, February 12th 2013, 1:26pm

Author: Dani

JBGrid - .Parent.print()

Hey there theuserbl, thanks for that link. There has been a little change to the code too: http://hg.openjdk.java.net/jdk7/jdk7/jdk…ePrintable.java but since I do not have javac I can not compile the new source. Do you have any link to download a sole java compiler without all the overhead of a sun JDK? At least it seems like it is a lot of overhead! I still have a question that I mentioned before in this thread Quoted I would also like to know: am I realy importing "...\overrideTablePrintable\T...

Tuesday, February 12th 2013, 10:19am

Author: Dani

Imported .class file does not load when reopening Jabaco

Hey there, If you hit F1 and Import (Add Folder) an external .class file, e.g. from your Projects' path, the reference stays in the Project. BUT: when you close the Project and open it again the path to the .class file is marked red and the message Quoted Could not open! appears. index.php?page=Attachment&attachmentID=341 'It might be a BUG in Jabaco! You have to Import that class every time again; it does not stay in the Imports Window! Dani

Tuesday, February 12th 2013, 10:03am

Author: Dani

JBGrid - .Parent.print()

Hey there, in case anyone is interested... This is how I got the above to work. Create a new Class Module: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Option Explicit '### Base = SuperClass = e.g. JTable '### Me = this = this class '### Jabaco Properties Pane (on your right) -> set SuperClass -> javax/swing/JTable '### Import #TablePrintable '### hit F1 and import (Add Folder) -> Path of modified TablePrintable.class '### NOT: javax#swing#TablePrin...

Friday, February 8th 2013, 9:09am

Author: Dani

windos 8 installation problem

Hey there, to me it sounds like the Java installation is not proceeding correctly. I suppose you are trying an online installation package. Check if the Win 8 firewall is allowing the installer to download the needed files. Turn off the firewall temporarily! Worst case would be that there is an elder Java version concurring or a partial installation. If that is the case you will have to uninstall this installation and clean the PC/Registry from any leftovers. look here: http://www.java.com/en/do...

Sunday, February 3rd 2013, 6:32pm

Author: Dani

JBGrid - .Parent.print()

Hey there, I have been trying to get this to work but I can not figure out how to override Method getPrintable() of JTable and reference to the external TablePrintable.class (Java) that will not draw a border around the table. I created a class in Jabaco with JTable as Superclass to override Method getPrintable() of JTable which is called by its print() Methods. Jabaco Source 1 2 3 4 5 6 7 8 9 10 '-> Import "...\overrideTablePrintable\TablePrintable.class" Import #TablePrintable Public Function ...

Friday, February 1st 2013, 10:58am

Author: Dani

SendMessage

Hey there, here is another approach Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Public Sub Command1_Click(Index As Integer) Select Case Index Case 0 'move first List1.Parent.getSelectionModel().setSelectionInterval(0, 0) List1.ensureIndexIsVisible(0) Case 1 'first visible List1.Parent.getSelectionModel().setSelectionInterval(0, List1.getFirstVisibleIndex) List1.ensureIndexIsVisible(List1.getFirstVisibleIndex) Case 2 'move previous If List1.Selec...

Monday, January 28th 2013, 5:38pm

Author: Dani

InStr / InStrRev - Different results compared to VB6

Very NICE theuserbl works perfect, I am glad I don't have to mess with the Java part Just to be complete on this and because people here complain about noncompatibility sometimes I'd like to mention that Jabaco Source 1 2 Debug.Print InStrRev("abab", "a", , vbTextCompare) ' -> VB accepts the 3rd argument to be left out when the 4th is given! Debug.Print InStrRev("abab", "a", 0) ' -> VB throws an Error for 0 I personally don't need full compatibility; I like slim code!! Thanks again, Dani

Friday, January 25th 2013, 12:57pm

Author: Dani

InStr / InStrRev - Different results compared to VB6

concerns the VBA tree of the framework Hey there, I have noticed that Jabacos InStr() and InStrRev() Functions return different results compared to VB6! InStr() is just a slight difference but InStrRev() might be a Bug! Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 Public Sub Command1_Click() 'InStr Debug.Print InStr("abab", "ab") If InStr("aba...

Thursday, January 24th 2013, 4:58pm

Author: Dani

can't copy my directory

Hey there, just to fill the gaps... http://www.vbarchiv.net/tipps/details.php?id=909 Dani

Thursday, January 24th 2013, 1:06pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, it is all possible!! Look for these in the internet Quoted JTable printing HashPrintRequestAttributeSet customized printing JTable just to give you an idea Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Import javax.print.attribute.HashPrintRequestAttributeSet Import javax.print.attribute.standard.OrientationRequested Public Sub Command1_Click() Dim Success As Boolean Dim strHeader As MessageFormat = New MessageFormat("Page {0}") Dim strFooter As MessageFormat = New MessageFormat("- {0} ...

Wednesday, January 23rd 2013, 9:08pm

Author: Dani

can't copy my directory

Hey there, with H2 all it takes is one SQL command Jabaco Source 1 BACKUP TO 'backup.zip' for a zip archive or Jabaco Source 1 SCRIPT TO 'C:\myScript.sql' very elegant! With MySql you will have to look at mysqldump http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html But it might be enough to backup the folder your database is located at. And thats simply the folder you set your database up in!! Dani

Wednesday, January 23rd 2013, 6:59pm

Author: Dani

JDBC:ODBC

Hey there, I think the problem is your connection string Quoted Set Con = java#sql#DriverManager.getConnection("jdbc:odbc:MyDB_Access") as opposed to Jabaco Source 1 conn = java#sql#DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\test\myDbfile") have a look at my attached index.php?page=Attachment&attachmentID=338 sample App index.php?page=Attachment&attachmentID=339 Dani

Wednesday, January 23rd 2013, 6:25pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, it works now Jabaco Source 1 2 3 4 5 6 7 8 Public Sub Command1_Click() Dim Success As Boolean Dim strHeader As MessageFormat = New MessageFormat("Page {0}") Dim strFooter As MessageFormat = New MessageFormat("- {0} -") Success = JBGrid1.Parent.print(JTable$PrintMode.FIT_WIDTH , strHeader, strFooter, True, Null, False, Null) End Sub This little symbol $ makes all the difference!! I am using edocprint to redirect printer output to .pdf files and header and footer show fine. Dani

Monday, January 21st 2013, 8:52pm

Author: Dani

JBGrid - .Parent.print()

have a look here for a possible solution http://www.jabaco.org/board/p3523-send-m…r.html#post3523

Monday, January 21st 2013, 8:45pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, I pointed out in another thread http://www.jabaco.org/board/p3071-jbgrid…t.html#post3071 that when printing a Jtable that... Quoted ... Unfortunately there is a border in the printed version surounding the grid that I can not get rid of! I tried all sorts of things to make that border disappear: ... I now know that this is hardcoded in the JavaClass TablePrintable.java I have changed that class so it will not draw that box!! However I don't have a java compiler on my system and don't ...

Monday, January 21st 2013, 8:14pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, why don't you just use the code by A1880 I provided a link to!? Drucken, wie ? it works fine for me... Now here is a little update on printing a JBGrid, JTable with custom parameters, print dialog, header, footer, pagenumber and so on: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 Public Sub Command1_Click() Dim Success As Boolean Dim strHeader As MessageFormat = New MessageFormat("Page {0}") Dim strFooter As MessageFormat = New MessageFormat("- {0} -") ' table.print(JTable.PrintMode printMod...

Friday, January 18th 2013, 5:21pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, I am not sure what exactly you did? Are you using a second hidden JBGrid now? If you do: - set JBGrid1.HeaderVisible = False - populate and format the first row, center cell with your custom title - leave the second row empty - populate the 3rd row with your header titles, format accordingly with html syntax - populate the rest of the grid with the content of your visible grid just an example, I don't know what you are after... I did not have a use for printing yet; did you look into ...

Wednesday, January 16th 2013, 7:12pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, I am afraid I can not help you. As I said, I don't get a handle on JTable.PrintMode myself! You could populate a second hidden Table (visible=False), write your HeaderMsg to the first row and only print that table! (Maybe use it as your visible table if that Msg does not disturb you!?) Not very satisfying but does the job for now. Maybe someone with a bit more Java knowledge can give some advice here? Dani

Tuesday, January 15th 2013, 5:52pm

Author: Dani

send my textfields and JBGrid to printer

Hey there, it seems like there is a way to customize printing a JTable: see: http://docs.oracle.com/javase/tutorial/u…printtable.html Jabaco Source 1 2 3 4 Dim Success As Boolean Dim headerFormat As MessageFormat = New MessageFormat("Page {0}") Dim footerFormat As MessageFormat = New MessageFormat("- {0} -") Success = JBGrid1.Parent.print(JTable.PrintMode.FIT_WIDTH , headerFormat, footerFormat) However, I dont know how to expose Quoted JTable.PrintMode I don't have the time to get into it right ...

Tuesday, January 15th 2013, 9:42am

Author: Dani

send my textfields and JBGrid to printer

Hey there, some inspiration... http://www.jabaco.org/board/p3071-jbgrid…t.html#post3071 http://www.jabaco.org/board/p1042-printing-rtf.html#post1042 download the Sample App: http://www.jabaco.org/board/p3498-vorste…t.html#post3498 Dani

WoltLab Burning Board