Search found 30 matches: autofit

Return to advanced search

Re: Excel - text width

I don't want to wrap the text. What I was think to do is: 1 Fill all the text that will me merged 2 Do a autofit 3 Than I can check the width of the columns, and save it into an array 4 Then merge the cells 5 Fill the rest of the rows. 6 Do the autofit again, and check that ...
by Marc Vanzegbroeck
Mon Apr 06, 2020 9:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Excel - text width
Replies: 6
Views: 624

Re: Excel - text width

anserkk wrote:Di you try
Code: Select all  Expand view
oSheet:Cells:EntireColumn:AutoFit

The above code should AutoFit All Columns on the Worksheet


Hi,

Yes, I did this. This is working very nice, but if you have merged cells, it doen't work on that cell. It works well or the cells below and above that cell
by Marc Vanzegbroeck
Mon Apr 06, 2020 8:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Excel - text width
Replies: 6
Views: 624

Re: Excel - text width

Di you try
Code: Select all  Expand view
oSheet:Cells:EntireColumn:AutoFit

The above code should AutoFit All Columns on the Worksheet
by anserkk
Mon Apr 06, 2020 8:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Excel - text width
Replies: 6
Views: 624

Excel - text width

... in cell of excel in pixels? My program is creating an excel file and ith that file, some fields are merged. The problem is that excel don't do an autofit of merged cells. I don't know the width of the text, cinse I get this information of a database This is the result: http://www.vms.be/downloads/merge1.JPG ...
by Marc Vanzegbroeck
Sun Apr 05, 2020 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Excel - text width
Replies: 6
Views: 624

Re: oSheet:Columns() range question

Ok, I found a solution for it with the range() object. Thanks Jimmy, Thank you for your answer. Indeed, I can use oSheet:EntireColumn:AutoFit() for the complete excel, but what If I want to do it for column 1 to 30? Another example is if I want to set the cell-format for only column 1 to ...
by Marc Vanzegbroeck
Tue Jan 07, 2020 2:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSheet:Columns() range question
Replies: 3
Views: 551

Re: oSheet:Columns() range question

Jimmy, Thank you for your answer. Indeed, I can use oSheet:EntireColumn:AutoFit() for the complete excel, but what If I want to do it for column 1 to 30? Another example is if I want to set the cell-format for only column 1 to 30 oSheet:Columns(  "A:ZZ" ...
by Marc Vanzegbroeck
Tue Jan 07, 2020 1:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSheet:Columns() range question
Replies: 3
Views: 551

Re: oSheet:Columns() range question

Hi, Now I'm using [code]oSheet:Columns( "A:ZZ" ):AutoFit()[/code] to set the autofit. Is it possible to give instead of "A:ZZ" the range with numbers? Now I have to calculate the range to convert it to characters. ...
by Jimmy
Tue Jan 07, 2020 1:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSheet:Columns() range question
Replies: 3
Views: 551

oSheet:Columns() range question

Hi,

Now I'm using
Code: Select all  Expand view
[code]oSheet:Columns( "A:ZZ" ):AutoFit()[/code]

to set the autofit.

Is it possible to give instead of "A:ZZ" the range with numbers?
Now I have to calculate the range to convert it to characters.
by Marc Vanzegbroeck
Tue Jan 07, 2020 8:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSheet:Columns() range question
Replies: 3
Views: 551

Re: Not working nStretchCol (xBrowse )

Dear Mr.Rao

The screen resolution is vary on my desktop and laptops.

How can I autofit column (stretch or srink) according to the resolution ?

I have sent screenshot of my application to you.

Regards

Yunus.
by dagiayunus
Tue May 08, 2018 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Not working nStretchCol (xBrowse )
Replies: 8
Views: 1417

New FTDN May/Mayo 2016 (FWH 16.05)

... had been previously shown: http://forums.fivetechsupport.com/viewtopic.php?p=190987 * Enhancement: XBROWSER now has new clauses NOMODAL and AUTOFIT. * Enhancement: When buttonbar is created in a Dialog, it is not any more necessary to call oDlg:Resize() in ON INIT clause. * Enhancement: ...
by Antonio Linares
Mon Jul 04, 2016 10:11 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN May/Mayo 2016 (FWH 16.05)
Replies: 0
Views: 1457

Re: How to Decode Json From web service [ to Mr. Rao ]

... )   hHash := &cStr   aHash := HGetValueAt( hHash, 1 )   xbrowser aHash setup ( obrw:autofit(), oBrw:bRClicked := { |r,c,f,o| o:ToDbf( "download.dbf", nil, nil, .t. ) } )return nil  In case you ...
by nageswaragunupudi
Wed Jun 01, 2016 9:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to Decode Json From web service [ to Mr. Rao ]
Replies: 10
Views: 3918

Re: Ancho de columna en clase TEXCEL

Buen dia, guiandome por las opciones de Visual B. intenta asi, saludos... :shock: oHoja:Columns(n):AutoFit() // asi ajusta la celda al texto, n es el numero de la columna oHoja:Columns(n):ColumnWidth := n // ancho oHoja:Columns(n):ColumnHeight := n // alto http://forums.fivetechsupport.com/viewtopic.php?f=6&t=6924&p=31324&hilit=ColumnWidth#p31324 ...
by joseluisysturiz
Tue May 31, 2016 3:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ancho de columna en clase TEXCEL
Replies: 1
Views: 412

Re: XBrowse 16.04 : Right Freeze

nageswaragunupudi wrote:It may be easier to do something like this:

oCol:nWidth := oBrw:GetWidth( "這是一個句子". oFont )

You may also try
oCol:AutoFit()
or
oBrw:AutoFit()

I see.
by richard-service
Wed Apr 27, 2016 11:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse 16.04 : Right Freeze
Replies: 7
Views: 1326

Re: XBrowse 16.04 : Right Freeze

It may be easier to do something like this:

oCol:nWidth := oBrw:GetWidth( "這是一個句子". oFont )

You may also try
oCol:AutoFit()
or
oBrw:AutoFit()
by nageswaragunupudi
Wed Apr 27, 2016 10:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse 16.04 : Right Freeze
Replies: 7
Views: 1326

New FTDN March 2016 (FWH 16.03)

... is called during execution of CreateFromCode(). In case of dialogs, Adjust() method is executed during Init of the Dialog. (c) Enhancement: AutoFit() can be called at anytime now: AutoFit( [aColsToFit], [lVisibleOrNumRows], [lDataOnly], [nMaxWidth] ) aColsToFit: Optional array of columns ...
by Antonio Linares
Wed Mar 30, 2016 8:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN March 2016 (FWH 16.03)
Replies: 0
Views: 1306
Next

Return to advanced search

cron