+ Reply to Thread
Results 1 to 7 of 7

pdf creator not autofit

  1. #1
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    pdf creator not autofit

    I have a routine that uses pdf creator to generate pdf files. There is a macro autofiting some of the columns before the pdf button is pressed. Autofitting seems working on the sheet however when I open the print preview and the autofitting effect is not showing at all and subsequently the pdf file is also squished.

    Anyone knows what possible causes are and how to fix them? Many thanks in advance!

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: pdf creator not autofit

    Can you explain a bit more?

    The PDF takes its settings from your print settings.

    Does your autofit macro make columns wide enough to fit enclosed text OR make columns fit the display (ie affect zoom)?
    Is the print range determined automatically OR by "Set Print Range"?
    Are "Page Set Up" settings perhaps instructing Excel to fit your print range to 1page wide X 1page tall?

    How do you want the PDF to look?
    Which columns should be included?
    Should it fit to 1 page wide?

    thanks
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: pdf creator not autofit

    Thank you Kev for the reply.

    The zoom is set to 100% and it's set to fit to 1 page.

    The problem is this file is coded in java api (with codes like <js: ,which I think it's jxls) in the template. To make it more complicated it's using a commercially purchased software to extra the data. To make it really more complicated the report is run in Azure ( I wonder if that would cause the problem?) I use vba to autofit columns and it looks alright on the sheet however when you press print preview it looks like the autofit was undone and subsequently the pdf is squished.

    I think I may have to give up on this lol. My last try.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: pdf creator not autofit

    In your explanation you have mentioned a lot of programs but never mentioned Excel.
    I do not know Azure

    Does Azure export the file in a format that Excel can read? In which format does Azure export?

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: pdf creator not autofit

    If the data is exported to excel and you wish to print this range to one page from excel you could try

    Please Login or Register  to view this content.
    Alf

  6. #6
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: pdf creator not autofit

    The page is set to 1 page. The excel file works fine on my computer when I just use regular pdf export. Since I don't have pdf creator myself, I can not test it. The problem occurs on another computer on another network which uses the 3rd party software to extract data (with an interface to select the template). The template then populates the report with a build in VBA for pdf creator to print out a pdf file. The report is run in Azure ( I don't know what exactly it is except it's a cloud computing service). So I am trying to figure out where the problem is first.

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: pdf creator not autofit

    In that case - I do not think I can offer you any further advice at this time. Good luck

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Can I determine the effect of autofit to .columnwidth prior to executing the autofit?
    By kadeo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2016, 10:29 AM
  2. Shopping list creator
    By DrPips in forum Excel General
    Replies: 17
    Last Post: 09-23-2015, 10:39 AM
  3. Comments Creator Macro
    By RN12345 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2015, 01:26 AM
  4. Bar Code Creator
    By lorber123 in forum Excel General
    Replies: 5
    Last Post: 11-17-2013, 07:17 AM
  5. Pdf creator problem
    By mjancic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2010, 12:16 PM
  6. directory creator
    By Xtopher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2010, 02:45 PM
  7. Automated PDF Creator
    By mjwillyone in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2010, 11:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1